OSDN Git Service

get_source(): Returns FALSE if error occurerd. Cleanup. Remove redundant is_page()
authorhenoheno <henoheno>
Sun, 19 Aug 2007 14:10:15 +0000 (23:10 +0900)
committerumorigu <umorigu@gmail.com>
Sun, 30 Nov 2014 00:40:34 +0000 (09:40 +0900)
lib/file.php

index 0b0b304..9472efa 100644 (file)
@@ -30,7 +30,7 @@ function get_source($page = NULL, $lock = TRUE, $join = FALSE)
 
                if ($lock) {
                        $fp = @fopen($path, 'r');
-                       if ($fp == FALSE) return FALSE;
+                       if ($fp === FALSE) return FALSE;
                        flock($fp, LOCK_SH);
                }