debugging api and add notify command
This commit is contained in:
@ -55,13 +55,15 @@ function getDevice($topic, $fn)
|
||||
$var = $var[$tmp];
|
||||
}else
|
||||
{
|
||||
logger(ERROR, sprintf(_("level %s of %s do not exists in %s"), $tmp, $fn, $topic), __FILE__ . ":" . __LINE__ );
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
return $var;
|
||||
logger(DEBUG, sprintf(_("returning a value")), __FILE__ . ":" . __LINE__ );
|
||||
return $var["device"];
|
||||
}else
|
||||
{
|
||||
logger(ERROR, sprintf(_("Topic %s do not exists"), $topic), __FILE__ . ":" . __LINE__ );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user