From bf1475c7d5a78759e0819f3934f5deb90f478fa2 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sat, 22 May 2010 08:42:21 +0300 Subject: Create log file if not there --- MainApp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MainApp.php') diff --git a/MainApp.php b/MainApp.php index 6007bd0..45c0165 100644 --- a/MainApp.php +++ b/MainApp.php @@ -24,7 +24,7 @@ class MainApp // fire up the output buffer ob_start(); - // Dispatch correct controller + // dispatch correct controller $c = new $controller; // Assume no method name was given, try $param, then default to defaultAction @@ -145,7 +145,7 @@ class MainApp $file = self::conf('app.error_log'); if (!is_file($file)) { - return false; + file_put_contents($file, $msg); } $msg = trim($msg); -- cgit v1.2.3