Add forgotten $ sign

Php was defaulting httpcodeOK to 'httpcodeOK' which always evaluates to
true (which is incorrect)
This commit is contained in:
Fatih Orhan 2013-04-04 11:20:23 +03:00
parent bf1be2bf49
commit 69fc326c98

View file

@ -92,7 +92,7 @@ function get_external_file($url, $timeout) {
}
// if response is not empty and response is OK
if (isset($data) and isset($httpcodeOK) and httpcodeOK ) {
if (isset($data) and isset($httpcodeOK) and $httpcodeOK ) {
// take charset of page and get it
preg_match('#<meta .*charset=.*>#Usi', $data, $meta);