From c77e8819999090d26be8a246e91f722ce9052b0a Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sun, 14 Aug 2005 18:49:21 +0000 Subject: [PATCH] Fix indenting. Remove use of $_SESSION[] inside of the class because we can simply use $this --- include/user.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/user.php b/include/user.php index 62a2e1a..6a73a50 100644 --- a/include/user.php +++ b/include/user.php @@ -80,15 +80,15 @@ class User { return false; } else { - $aInsert = compile_insert_string(array( 'realname' => $sRealname, - 'email' => $sEmail, - 'CVSrelease' => $sWineRelease )); + $aInsert = compile_insert_string(array( 'realname' => $sRealname, + 'email' => $sEmail, + 'CVSrelease' => $sWineRelease )); - $sFields = "({$aInsert['FIELDS']}, `password`, `stamp`, `created`)"; - $sValues = "({$aInsert['VALUES']}, password('".$sPassword."'), NOW(), NOW() )"; + $sFields = "({$aInsert['FIELDS']}, `password`, `stamp`, `created`)"; + $sValues = "({$aInsert['VALUES']}, password('".$sPassword."'), NOW(), NOW() )"; - query_appdb("INSERT INTO user_list $sFields VALUES $sValues", "Error while creating a new user."); - return $this->login($sEmail, $sPassword); + query_appdb("INSERT INTO user_list $sFields VALUES $sValues", "Error while creating a new user."); + return $this->login($sEmail, $sPassword); } } @@ -411,7 +411,7 @@ class User { $additionalTerms = "AND id='".$iAppDataId."'"; } - if($_SESSION['current']->hasPriv("admin")) + if($this->hasPriv("admin")) { $sQuery = "SELECT ".$selectTerms." FROM appData,appVersion