diff options
author | Squibid <me@zacharyscheiman.com> | 2023-12-27 14:47:23 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-12-27 14:47:23 -0500 |
commit | 01095099968a632d8fde0ab93d25943e3bfb087c (patch) | |
tree | fee7f46cde0bf4b3a15481ee99c5e93b094f3761 /scrapers | |
parent | 0796c59f92954888dd413c6a277fab278bd9068a (diff) | |
download | wallheaven-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.php | 2 |
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); |