From 3a428579137492742ee8c2e115816e6308d490be Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 22 May 2004 10:14:31 +0000 Subject: [PATCH] fixed a bug with open_basdir_restrictions on --- home.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home.php b/home.php index f8826e9d68..7ddbbcb7b6 100755 --- a/home.php +++ b/home.php @@ -145,8 +145,9 @@ { $_db_version = $GLOBALS['phpgw']->db->f('app_version'); $_app_name = $GLOBALS['phpgw']->db->f('app_name'); - $_versionfile = $GLOBALS['phpgw']->common->get_app_dir($_app_name) . '/setup/setup.inc.php'; - if(file_exists($_versionfile)) + $_app_dir = $GLOBALS['phpgw']->common->get_app_dir($_app_name); + $_versionfile = $_app_dir . '/setup/setup.inc.php'; + if($_app_dir && file_exists($_versionfile)) { include($_versionfile); $_file_version = $setup_info[$_app_name]['version'];