From a86a013a16f9b7319c2e04204c197a48afc1114c 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...) --HG-- branch : develop --- 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));