Doh, I forgot to add an if statement for uid > 0 in the hook user function so some QVs could be added to anonymous users. This doesnt really affect much but does add some unnecessary overhead to the init process.

//Note to self, use this to fix the problem.
if ($account->uid > 0)
      {
         $vars = queryable_variables_get_vars_by_nid($account->uid, 'uid');
         if ($vars)
         {
            foreach ($vars AS $field_name => $value)
            {
               $account->$field_name = $value;
            }
         }
      }

Comments

crystaldawn’s picture

Status: Active » Closed (fixed)

Fixed.