1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-27 11:22:17 -05:00

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 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 // take charset of page and get it
preg_match('#<meta .*charset=.*>#Usi', $data, $meta); preg_match('#<meta .*charset=.*>#Usi', $data, $meta);