From 3dcc1da88b63810ec94e4dadedac970665b93e2a Mon Sep 17 00:00:00 2001 From: hauke Date: Tue, 27 Jan 2015 18:21:32 +0100 Subject: [PATCH] bug fix: syntax error #1321 --- include/api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/api.php b/include/api.php index 7cff2af5f3..2d3c31af0c 100644 --- a/include/api.php +++ b/include/api.php @@ -1643,7 +1643,8 @@ $user_info = api_get_user($a); - $ret = api_format_items($item,$user_info)[0]; + $rets = api_format_items($item,$user_info); + $ret = $rets[0]; $data = array('$status' => $ret); switch($type){ -- 2.39.5