From 90a1d8a6b664e22917d86ba7b8e44e267524abda Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Thu, 28 May 2015 09:22:22 +0200 Subject: [PATCH] no need to try to get files if we have no code --- mobile.netbiblio.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mobile.netbiblio.php b/mobile.netbiblio.php index 356bc29..2df8867 100644 --- a/mobile.netbiblio.php +++ b/mobile.netbiblio.php @@ -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(