Skip to content

Commit 2a481d5

Browse files
committed
Update SMotions_motionDetected.php
Motion timeout fix
1 parent aafec3e commit 2a481d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/devices/SMotions_motionDetected.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
$motion_timeout = $this->getProperty('timeout'); // seconds timeout
17-
if (!$motion_timeout== "") {
17+
if ($motion_timeout == "") {
1818
$motion_timeout = 20; // timeout by default
1919
}
2020
if ($motion_timeout) {
@@ -37,14 +37,14 @@
3737
$nobodyhome_timeout = SETTINGS_BEHAVIOR_NOBODYHOME_TIMEOUT * 60;
3838
}
3939

40-
$resetNobodysHome=$this->getProperty('resetNobodysHome');
40+
$resetNobodysHome = $this->getProperty('resetNobodysHome');
4141
if ($nobodyhome_timeout && !$resetNobodysHome) {
4242
setTimeOut('nobodyHome', "callMethodSafe('NobodyHomeMode.activate');", $nobodyhome_timeout);
4343
} elseif ($resetNobodysHome) {
4444
clearTimeout('nobodyHome');
4545
}
4646

47-
$is_blocked=(int)$this->getProperty('blocked');
47+
$is_blocked = (int)$this->getProperty('blocked');
4848
if ($is_blocked) {
4949
return;
5050
}

0 commit comments

Comments
 (0)