1
0

some debbuging :-(

This commit is contained in:
2022-06-10 12:44:09 +02:00
parent cde4d728cf
commit b2f79dd49c
8 changed files with 80 additions and 64 deletions

View File

@ -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";
}