Skip to content
Permalink
Browse files

Update magichome.class.php

  • Loading branch information...
directman66 committed Mar 10, 2019
1 parent 5c1182d commit 9d3f18c81d71821d0f1ff26d3576ae899a25a8fd
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/magichome/magichome.class.php
@@ -448,9 +448,9 @@ function search_devices(&$out) {
$cmd='
$online=ping(processTitle("'.$ip.'"));
if ($online)
{SQLexec("update camshoter_devices set ONLINE=1, LASTPING='.time().' where IP=\''.$ip.'\'");}
{SQLexec("update magichome_devices set ONLINE=1, LASTPING='.time().' where IP=\''.$ip.'\'");}
else
{SQLexec("update camshoter_devices set ONLINE=0, LASTPING='.time().' where IP=\''.$ip.'\'");}
{SQLexec("update magichome_devices set ONLINE=0, LASTPING='.time().' where IP=\''.$ip.'\'");}
';
SetTimeOut('magichome_ping',$cmd, '1');

0 comments on commit 9d3f18c

Please sign in to comment.
You can’t perform that action at this time.