From 041f3ca774b07e404c5a9eea6e42c9875d444387 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 8 Mar 2011 18:11:36 -0800 Subject: detect empty .htconfig.php - in case permissions need to be set on it in order to install --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index bbd2c81cd..01d8eb2a1 100644 --- a/index.php +++ b/index.php @@ -19,11 +19,11 @@ $a = new App; /** * * Load the configuration file which contains our DB credentials. - * Ignore errors. If the file doesn't exist, we are running in installation mode. + * Ignore errors. If the file doesn't exist or is empty, we are running in installation mode. * */ -$install = ((file_exists('.htconfig.php')) ? false : true); +$install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false : true); @include(".htconfig.php"); -- cgit v1.2.3