aboutsummaryrefslogtreecommitdiffstats
path: root/scrapers
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-12-27 14:47:23 -0500
committerSquibid <me@zacharyscheiman.com>2023-12-27 14:47:23 -0500
commit01095099968a632d8fde0ab93d25943e3bfb087c (patch)
treefee7f46cde0bf4b3a15481ee99c5e93b094f3761 /scrapers
parent0796c59f92954888dd413c6a277fab278bd9068a (diff)
downloadwallheaven-01095099968a632d8fde0ab93d25943e3bfb087c.tar.gz
wallheaven-01095099968a632d8fde0ab93d25943e3bfb087c.tar.bz2
wallheaven-01095099968a632d8fde0ab93d25943e3bfb087c.zip
tell user that we can't reach wallhaven.cc
Diffstat (limited to '')
-rw-r--r--scrapers/wallhaven.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/scrapers/wallhaven.php b/scrapers/wallhaven.php
index 5dbdd68..78f56c7 100644
--- a/scrapers/wallhaven.php
+++ b/scrapers/wallhaven.php
@@ -19,6 +19,8 @@
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($curl);
+ if ($result == null)
+ printf("<p id='error'>Request to wallhaven.cc denied :(</p>\n");
curl_close($curl);