From 00aacdeaddb3b59cf165baa1b3572b39fd96b65c Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sun, 22 Apr 2007 15:52:06 +0000 Subject: [PATCH] Fix some inconsistent braces and add a comment to the objectManager code --- include/objectManager.php | 7 +++++-- objectManager.php | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/objectManager.php b/include/objectManager.php index 334b9d1..9751836 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -300,6 +300,8 @@ class ObjectManager switch($aClean['sSubmit']) { case "Submit": + // if we have a valid iId then we are displaying an existing entry + // otherwise we should create the entry in the 'else' case if($this->iId) { if(!$oObject->canEdit()) @@ -312,9 +314,10 @@ class ObjectManager $oObject->unQueue(); $oObject->update(); - } - else + } else + { $oObject->create(); + } break; case "Reject": diff --git a/objectManager.php b/objectManager.php index b841d50..0e89404 100644 --- a/objectManager.php +++ b/objectManager.php @@ -84,8 +84,9 @@ if($oObject->iId) break; } } else if ($aClean['sAction'] == "add") +{ $oObject->add_entry($REQUEST_URI, $sErrors); -else +} else { // if displaying a queue display the help for the given queue if($oObject->bIsQueue)