summaryrefslogtreecommitdiffstats
path: root/pts-core/objects/pts_module.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-09-13 07:39:57 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-09-13 07:39:57 -0400
commitc7234634629df80df32c35b1aad7f7f5757175d9 (patch)
tree2f8ccecdf165d501bdf76917a63ac5bc71a2f75a /pts-core/objects/pts_module.php
parent13c531213844ef1c52b8026f1ef8c1d2b31990c9 (diff)
downloadphoronix-test-suite-upstream-c7234634629df80df32c35b1aad7f7f5757175d9.tar.gz
phoronix-test-suite-upstream-c7234634629df80df32c35b1aad7f7f5757175d9.tar.xz
phoronix-test-suite-upstream-c7234634629df80df32c35b1aad7f7f5757175d9.zip
pts-core: pts_module::read_file() should return FALSE when file not
found
Diffstat (limited to 'pts-core/objects/pts_module.php')
-rw-r--r--pts-core/objects/pts_module.php6
1 files changed, 5 insertions, 1 deletions
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)
{