category: Move code from appbrowse.php to the category class

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-08-05 02:34:02 +02:00
committed by Alexander Nicolaysen Sørnes
parent db87518ddc
commit 3f17cf52d3
6 changed files with 193 additions and 168 deletions

View File

@@ -116,7 +116,7 @@ if(!$sAction)
apidb_header($oObject->get_title($sAction));
/* display a particular element */
if($oObject->getId() && $sAction != "add")
if(($oObject->getId() || $oObject->IsNullIdAllowed($sAction)) && $sAction != "add")
{
switch($sAction)
{