Manually cast door state to int (#49)
This commit is contained in:
		| @@ -74,7 +74,7 @@ function handleSetState() { | |||||||
|         die(); |         die(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     $door->createEvent((int)($event->time), (bool)($event->isDoorOpen)); |     $door->createEvent((int)($event->time), $event->isDoorOpen ? 1 : 0); | ||||||
|     echo '{"status": "OK"}'; |     echo '{"status": "OK"}'; | ||||||
| }  | }  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub