Index: trunk/kernel/include/category.php =================================================================== diff -u -r13 -r123 --- trunk/kernel/include/category.php (.../category.php) (revision 13) +++ trunk/kernel/include/category.php (.../category.php) (revision 123) @@ -1083,7 +1083,6 @@ else $ret = ""; break; - case "pick": /* @field:cat.pick @@ -1328,6 +1327,7 @@ global $m_var_list; $this->clsItemCollection(); $this->classname="clsCategory"; + $this->AdminSearchFields = array("Name","Description"); $this->Page=(int)$m_var_list["p"]; $this->PerPageVar = "Perpage_Category"; $this->SourceTable = GetTablePrefix()."Category"; @@ -1500,7 +1500,7 @@ $PerPage = $objConfig->Get($this->PerPageVar); if(!is_numeric($PerPage)) $PerPage = 10; - + $this->QueryItemCount=TableCount($this->SourceTable,$where,0); //echo $this->QueryItemCount." Items Loaded
\n"; if(is_numeric($objConfig->Get($this->PerPageVar))) @@ -1521,7 +1521,6 @@ { global $m_var_list, $objSession, $Errors, $objPermissions; $GroupID = $objSession->Get("GroupID"); - $resultset = array(); $table = $this->SourceTable; @@ -1540,7 +1539,7 @@ } else { - $sql ="SELECT * FROM $table WHERE $whereClause"; + $sql ="SELECT * FROM $table ".($whereClause ? "WHERE $whereClause" : ''); } $sql .=" ".$orderByClause;