From c13ce6a35c87e9367f19fcb948b3bf4f97014fe7 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 9 Nov 2011 13:44:34 +1100 Subject: [PATCH] Fixed bug particularly effecting new installations --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 65a03606..38921d85 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -22,7 +22,7 @@ } if(!isset($__version)) - $__version = trim(file_get_contents('.installed')); + $__version = file_exists('.installed') ? trim(file_get_contents('.installed')) : false; $config['version'] = $__version; if($config['debug']) {