nielse63 / php-image-cache

Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.
http://nielse63.github.io/php-image-cache
Other
457 stars 105 forks source link

Message: Undefined variable: main_url #7

Closed sumanta-ghosh closed 10 years ago

sumanta-ghosh commented 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

nielse63 commented 10 years ago

That was an oversight on my side, and a stupid mistake. Thanks for pointing this out, Sumanta. The issue has been resolved.