mobile apps need to have a 'files' array even empty

This commit is contained in:
Gilles Crettenand
2015-05-29 13:22:02 +02:00
parent d8b48e8764
commit b2f876fd82

View File

@@ -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;
}