From b2f876fd8263c3ebf1ca6a5311957649fff582be Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Fri, 29 May 2015 13:22:02 +0200 Subject: [PATCH] mobile apps need to have a 'files' array even empty --- mobile.netbiblio.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mobile.netbiblio.php b/mobile.netbiblio.php index 3641a21..2067bb9 100644 --- a/mobile.netbiblio.php +++ b/mobile.netbiblio.php @@ -249,6 +249,8 @@ class NetBiblio extends WebService $files = json_decode($json, true); if (is_array($files)) { $book['files'] = $files; + } else { + $book['files'] = array(); } return $book; }