no need to try to get files if we have no code
This commit is contained in:
@@ -250,6 +250,10 @@ class NetBiblio extends WebService
|
|||||||
|
|
||||||
private function AddFiles(array $book)
|
private function AddFiles(array $book)
|
||||||
{
|
{
|
||||||
|
if(!isset($book['code'])) {
|
||||||
|
return $book;
|
||||||
|
}
|
||||||
|
|
||||||
$uri = sprintf("%s%s",
|
$uri = sprintf("%s%s",
|
||||||
Configuration::get('checkfile_url'),
|
Configuration::get('checkfile_url'),
|
||||||
http_build_query(array(
|
http_build_query(array(
|
||||||
|
|||||||
Reference in New Issue
Block a user