From 8209eaace28e7667781b2ff14e02bd8385baec4a Mon Sep 17 00:00:00 2001 From: henoheno Date: Sun, 19 Aug 2007 23:10:15 +0900 Subject: [PATCH] get_source(): Returns FALSE if error occurerd. Cleanup. Remove redundant is_page() --- lib/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file.php b/lib/file.php index 0b0b304..9472efa 100644 --- a/lib/file.php +++ b/lib/file.php @@ -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); } -- 2.11.0