Browse Source

no message

MS-PDRLKVHCADMG\Administrator 5 years ago
parent
commit
e7108e52a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/application/controllers/Lampcontrol.php

+ 1 - 1
api/application/controllers/Lampcontrol.php

@@ -681,7 +681,7 @@ class Lampcontrol extends Base_Controller {
             $word = '';
             if ($key == 'intell_power' || $key == 'light_type') {
                 $word = substr('0'.base_convert($value, 10, 16), -1);
-            }elseif (strpos('light_time', $key)) {
+            }elseif (strpos($key,'light_time')) {
                 $t = explode(':', $value);
                 $m = $t[0]*60+$t[1];
                 $m = round($m/10);