From 75aa8e86ed49abc060c053a84e26b2dd849aa802 Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Thu, 2 Oct 2008 14:52:04 +0000 Subject: Use empty instead of ! in case it isn't set yet. --- bit_setup_inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bit_setup_inc.php b/bit_setup_inc.php index 1053576..d6a543d 100644 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -1,6 +1,6 @@ isFeatureActive( 'users_remember_me' )) { // just use a simple COOKIE (unique random string) that is linked to the users_cnxn table. // This way, nuking rows in the users_cnxn table can log people out and is much more reliable than SESSIONS global $gShellScript; -if(!$gShellScript) { +if( empty( $gShellScript ) ) { session_start(); } $cookie_site = strtolower( ereg_replace( "[^a-zA-Z0-9]", "", $gBitSystem->getConfig( 'site_title', 'bitweaver' ))); -- cgit v1.3