summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2008-10-02 14:52:04 +0000
committerNick Palmer <nick@sluggardy.net>2008-10-02 14:52:04 +0000
commit75aa8e86ed49abc060c053a84e26b2dd849aa802 (patch)
treed427e0d9853b54278447ff030e4dc245a8198edf
parent71c3d683f3cbda9b57471f549e9b7dc5e3eef295 (diff)
downloadusers-75aa8e86ed49abc060c053a84e26b2dd849aa802.tar.gz
users-75aa8e86ed49abc060c053a84e26b2dd849aa802.tar.bz2
users-75aa8e86ed49abc060c053a84e26b2dd849aa802.zip
Use empty instead of ! in case it isn't set yet.
-rw-r--r--bit_setup_inc.php4
1 files 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 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_users/bit_setup_inc.php,v 1.46 2008/10/02 14:45:39 nickpalmer Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_users/bit_setup_inc.php,v 1.47 2008/10/02 14:52:04 nickpalmer Exp $
* @package users
*/
global $gBitDbType, $gBitDbHost, $gBitDbUser, $gBitDbPassword, $gBitDbName, $gBitThemes;
@@ -59,7 +59,7 @@ if( $gBitSystem->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' )));