no need to try to get files if we have no code

This commit is contained in:
Gilles Crettenand
2015-05-28 09:22:22 +02:00
parent 6afa8b55f7
commit 90a1d8a6b6

View File

@@ -250,6 +250,10 @@ class NetBiblio extends WebService
private function AddFiles(array $book)
{
if(!isset($book['code'])) {
return $book;
}
$uri = sprintf("%s%s",
Configuration::get('checkfile_url'),
http_build_query(array(