diff -r 7846d45bd250 -r b2f985e4cef3 plugins/SpecialUserPrefs.php --- a/plugins/SpecialUserPrefs.php Fri Nov 23 17:59:24 2007 -0500 +++ b/plugins/SpecialUserPrefs.php Sat Nov 24 00:53:23 2007 -0500 @@ -25,7 +25,7 @@ function userprefs_menu_add($section, $text, $link) { global $userprefs_menu; - if ( is_array($userprefs_menu[$section]) ) + if ( isset($userprefs_menu[$section]) && is_array($userprefs_menu[$section]) ) { $userprefs_menu[$section][] = Array( 'text' => $text, @@ -133,7 +133,7 @@ $uid = intval($session->user_id); // Instanciate the AES encryptor - $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE); + $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE); // Basic user info $q = $db->sql_query('SELECT username, password, email, real_name, signature, theme, style FROM '.table_prefix.'users WHERE user_id='.$uid.';');