File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 4747 $ suchString = 'dnb.num= ' . implode ('+OR+dnb.num= ' , $ nArray );
4848}
4949
50- $ result = file_get_contents ($ urlBase . $ suchString , false );
50+ $ result = @ file_get_contents ($ urlBase . $ suchString , false );
5151
5252if ($ result === false ) {
5353 header ('HTTP/1.1 400 Bad Request ' );
Original file line number Diff line number Diff line change 188188
189189if (!isset ($ cover )) {
190190 $ urlOpenlibrary = 'https://covers.openlibrary.org/b/isbn/ ' . $ n13 . '-M.jpg ' ;
191- $ headerOpenlibrary = get_headers ($ urlOpenlibrary , 1 );
192- if (!strpos ($ headerOpenlibrary [0 ], '404 NotFound ' )) {
191+ $ headerOpenlibrary = @ get_headers ($ urlOpenlibrary , 1 );
192+ if ($ headerOpenlibrary !== false && !strpos ($ headerOpenlibrary [0 ], '404 NotFound ' )) {
193193 $ cover = $ urlOpenlibrary ;
194194 $ coverOrigin = 'https://openlibrary.org/isbn/ ' . $ n13 ;
195195 }
You can’t perform that action at this time.
0 commit comments