[minor] Trying to be a little more careful with values from users_extra in validate_session()
authorDan
Thu, 24 Jan 2008 22:14:40 -0500
changeset 375 8d0e3a5a6990
parent 374 5c740e430a05
child 376 66732bd4532c
[minor] Trying to be a little more careful with values from users_extra in validate_session()
includes/sessions.php
--- a/includes/sessions.php	Thu Jan 24 22:10:00 2008 -0500
+++ b/includes/sessions.php	Thu Jan 24 22:14:40 2008 -0500
@@ -1276,7 +1276,8 @@
     $user_extra = array();
     foreach ( array('user_aim', 'user_yahoo', 'user_msn', 'user_xmpp', 'user_homepage', 'user_location', 'user_job', 'user_hobbies', 'email_public') as $column )
     {
-      $user_extra[$column] = $row[$column];
+      if ( isset($row[$column]) )
+        $user_extra[$column] = $row[$column];
     }
     
     $this->user_extra = $user_extra;