récupération après crash
This commit is contained in:
@@ -29,7 +29,7 @@ class rdc_temperature_int_ext extends hook
|
||||
// callback fonction. Is called with these 4 parameters
|
||||
public function callBack(&$device, $property, $value)
|
||||
{
|
||||
global $indexDevices, $hooks;
|
||||
global $indexDevices, $scripts;
|
||||
static $time;
|
||||
$portes = array();
|
||||
$status = -1;
|
||||
@@ -76,7 +76,7 @@ class rdc_temperature_int_ext extends hook
|
||||
//print_r($portes);
|
||||
if ($status == 1)
|
||||
{
|
||||
$portes = $hooks["test_portes"]->testPortes($this->portesList, false, false);
|
||||
$portes = $scripts["test_portes"]->testPortes($this->portesList, false, false);
|
||||
if (empty($portes))
|
||||
{
|
||||
$time = now();
|
||||
@@ -88,7 +88,7 @@ class rdc_temperature_int_ext extends hook
|
||||
}
|
||||
}else
|
||||
{
|
||||
$portes = $hooks["test_portes"]->testPortes($this->portesList, false, true);
|
||||
$portes = $scripts["test_portes"]->testPortes($this->portesList, false, true);
|
||||
if (!empty($portes))
|
||||
{
|
||||
$time = now();
|
||||
|
||||
Reference in New Issue
Block a user