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);
|
||||
if (is_array($files)) {
|
||||
$book['files'] = $files;
|
||||
} else {
|
||||
$book['files'] = array();
|
||||
}
|
||||
return $book;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user