tell user that we can't reach wallhaven.cc
This commit is contained in:
parent
0796c59f92
commit
0109509996
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue