mobile apps need to have a 'files' array even empty
This commit is contained in:
@@ -249,6 +249,8 @@ class NetBiblio extends WebService
|
|||||||
$files = json_decode($json, true);
|
$files = json_decode($json, true);
|
||||||
if (is_array($files)) {
|
if (is_array($files)) {
|
||||||
$book['files'] = $files;
|
$book['files'] = $files;
|
||||||
|
} else {
|
||||||
|
$book['files'] = array();
|
||||||
}
|
}
|
||||||
return $book;
|
return $book;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user