bugfix for api

This commit is contained in:
Ulf Gebhardt 2013-08-16 17:38:42 +02:00
parent 3f8ecd96c2
commit 346f54c106

View File

@ -41,8 +41,10 @@ class api {
$commands[] = array($item,$params[$item[\SYSTEM\DBD\APITable::FIELD_NAME]]);
$parentid = intval($item[\SYSTEM\DBD\APITable::FIELD_ID]);
}
}
}
if(count($commands) <= 0){
return \call_user_func(array($apiclassname,'default_page'));}
//Parameters
$parameters = array();
$parentid = $commands[count($commands)-1][0];