Refactor PHP.

This commit is contained in:
Lars Jung 2014-07-01 03:03:41 +02:00
parent 8fd393d34a
commit 903b29c4c0
4 changed files with 10 additions and 11 deletions

View file

@ -103,7 +103,7 @@ class Api {
$response["all_items"] = $this->app->get_all_items();
}
if (count($_REQUEST)) {
if (AS_ADMIN && count($_REQUEST)) {
$response["unused"] = $_REQUEST;
}