From 8d11055fd8dfe5d77ce3f767ad6397e1dfd3ca4a Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 23 Dec 2015 15:30:52 +0100 Subject: [PATCH] Fixed: Warning when $json was empty (but perhaps we should fix the real reason...) --- code/web/private_php/ams/autoload/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/web/private_php/ams/autoload/users.php b/code/web/private_php/ams/autoload/users.php index 67ed9af88..5b3bfaa2d 100644 --- a/code/web/private_php/ams/autoload/users.php +++ b/code/web/private_php/ams/autoload/users.php @@ -357,7 +357,7 @@ class Users{ //error_log(print_r($rows,true)); //error_log(print_r($result,true)); //error_log(print_r($json,true)); - foreach ($json as $key => $value) { + if ($json) foreach ($json as $key => $value) { //error_log(print_r($key,true)); //error_log(print_r($value,true));