2 afwas Dec 24, 2007 22:04

Afwas saves the day again! Yay! Thank you! :)
Still getting an error ("Only variable references...) on /inc/items/model/_itemlist.class.php on line 297, which is the last here (return $Item;)
function & get_item()
{
if( $this->group_by_cat == 1 )
{ // This is the first call to get_item() after get_category_group()
$this->group_by_cat = 2;
// Return the object we already got in get_category_group():
return $this->current_Obj;
}
$Item = & parent::get_next();
if( !empty($Item) && $this->group_by_cat == 2 && $Item->main_cat_ID != $this->main_cat_ID )
{ // We have just hit a new category!
$this->group_by_cat == 0; // For info only.
$r = false;
$temp = & $r;
return $temp;
}
return $Item;
}
Any suggestions? Thanks again!
By the way, is there skin that would not cause errors? I'll just use that one! ;)
try
$foo = & $Utem;
return $foo;
Yo get rid of these errors upgrade to PHP 5. The option with disabling error notices is perfectly safe also.
Good luck
Please have a look at [url=http://manual.b2evolution.net/FAQ_:_After_Installation#I_have_.22Notice:_Only_variable_references_should_be_returned_by_reference_in.22_all_over_the_place]this[/url].
If you need further assistance, please let us know.
Good luck