We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cc5dd6 commit 62d9a73Copy full SHA for 62d9a73
1 file changed
plugins/tracklabels/action.php
@@ -87,11 +87,13 @@ function image_name($prefix, $req_field)
87
$client->read_timeout = 5;
88
$client->_fp_timeout = 5;
89
@$client->fetchComplex($url);
90
- if ($client->status == 200)
+ if ($client->status == 200) {
91
file_put_contents($ico_name, $client->results);
92
- if (strpos(mime_content_type($ico_name), "image/")===false)
93
- @unlink($ico_name);
94
- try_send_image($ico_name, 'image/x-icon');
+ if (strpos(mime_content_type($ico_name), "image/")===false)
+ @unlink($ico_name);
+ else
95
+ try_send_image($ico_name, 'image/x-icon');
96
+ }
97
}
98
99
0 commit comments