--- a/plugins/SpecialUserPrefs.php Sun Dec 02 15:27:21 2007 -0500
+++ b/plugins/SpecialUserPrefs.php Sun Dec 02 16:00:10 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.';');