Index: trunk/kernel/include/category.php =================================================================== diff -u -r701 -r817 --- trunk/kernel/include/category.php (.../category.php) (revision 701) +++ trunk/kernel/include/category.php (.../category.php) (revision 817) @@ -1405,24 +1405,28 @@ { global $objSession; - $cat = $attribs["_catid"]; + $cat = getArrayValue($attribs,'_catid'); if(!is_numeric($cat)) { $cat = $this->CurrentCategoryID(); } if((int)$cat>0) $c = $this->GetCategory($cat); - if($attribs["_subcats"] && $cat>0) + if( getArrayValue($attribs,'_subcats') && $cat>0) { $ParentWhere = "(ParentPath LIKE '".$c->Get("ParentPath")."%' AND ".$this->SourceTable.".CategoryId != $cat)"; } - if($attribs["_today"]) + if( getArrayValue($attribs,'_today') ) { $today = mktime(0,0,0,date("m"),date("d"),date("Y")); $TodayWhere = "(CreatedOn>=$today)"; } - if($attribs["_grouponly"]) + else + { + $TodayWhere = ''; + } + if( getArrayValue($attribs,'_grouponly') ) { $GroupList = $objSession->Get("GroupList"); }