Closed sumanta-ghosh closed 10 years ago
private function is404($source) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $main_url); curl_setopt($ch, CURLOPT_NOBODY, true); curl_exec($ch); if (curl_getinfo($ch, CURLINFO_HTTP_CODE) == '404') return $this->show404(); return false; }
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: main_url
Filename: ImageCache/ImageCache.php
Line Number: 232
That was an oversight on my side, and a stupid mistake. Thanks for pointing this out, Sumanta. The issue has been resolved.
private function is404($source) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $main_url); curl_setopt($ch, CURLOPT_NOBODY, true); curl_exec($ch); if (curl_getinfo($ch, CURLINFO_HTTP_CODE) == '404') return $this->show404(); return false; }
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: main_url
Filename: ImageCache/ImageCache.php
Line Number: 232