some debbuging :-(
This commit is contained in:
@ -315,14 +315,14 @@ function apiGet($argList)
|
||||
|
||||
function apiSet($argList)
|
||||
{
|
||||
global $indexFriendlyName;
|
||||
global $indexFriendlyNames, $topics;
|
||||
if(!array_key_exists("topic", $argList) or !array_key_exists("fn", $argList) or !array_key_exists("property", $argList) or !array_key_exists("value", $argList))
|
||||
{
|
||||
if (!array_key_exists($argList["topic"], $topics) )
|
||||
{
|
||||
$response = "SET: " . _("bad parameter passed: topic does not exists") . "<br>\n";
|
||||
}
|
||||
if (!array_key_exists(!array_key_exists($argList["fn"], $indexFriendlyName)))
|
||||
if (!array_key_exists($argList["fn"], $indexFriendlyNames))
|
||||
{
|
||||
$response = "SET: " . _("bad parameter passed: fn does not exists") . "<br>\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user