From c7234634629df80df32c35b1aad7f7f5757175d9 Mon Sep 17 00:00:00 2001 From: Michael Larabel Date: Sat, 13 Sep 2008 07:39:57 -0400 Subject: pts-core: pts_module::read_file() should return FALSE when file not found --- pts-core/objects/pts_module.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pts-core/objects/pts_module.php') diff --git a/pts-core/objects/pts_module.php b/pts-core/objects/pts_module.php index 132c0f6..6608a9e 100644 --- a/pts-core/objects/pts_module.php +++ b/pts-core/objects/pts_module.php @@ -99,7 +99,11 @@ class pts_module $file = self::save_dir() . $file; if(is_file($file)) - return file_get_contents($file); + $file = file_get_contents($file); + else + $file = FALSE; + + return $file; } public static function remove_file($file) { -- cgit