]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add forgotten $ sign
authorFatih Orhan <fatihorhan@gmail.com>
Thu, 4 Apr 2013 08:20:23 +0000 (11:20 +0300)
committerFatih Orhan <fatihorhan@gmail.com>
Thu, 4 Apr 2013 08:20:23 +0000 (11:20 +0300)
Php was defaulting httpcodeOK to 'httpcodeOK' which always evaluates to
true (which is incorrect)

readityourself.php

index 4a4661c26b95adc88df2e3a8afa0697bcdb9508b..2071b417529643b93f1ffd13d03bb459fb52c422 100755 (executable)
@@ -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);