Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Update Image.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gulaandrij authored Jul 13, 2016
1 parent 00a414a commit b45ef03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Faker/Provider/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static function image($dir = null, $width = 640, $height = 480, $category
$fp = fopen($filepath, 'w');
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FILE, $fp);
$success = curl_exec($ch) || curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200;
$success = curl_exec($ch) && curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200;

if ($success) {
fclose($fp);
Expand Down

0 comments on commit b45ef03

Please sign in to comment.