Closed (fixed)
Project:
Queryable Variables
Version:
6.x-3.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Apr 2009 at 19:56 UTC
Updated:
29 Jul 2009 at 17:43 UTC
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
Comment #1
crystaldawn commentedFixed.