From 67a08738a5f688f1050b83572a717c727e7d29c3 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Wed, 9 Mar 2011 20:53:33 +0100 Subject: KCL und BootMenuFilter --- application/models/BootOsMapper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'application/models/BootOsMapper.php') diff --git a/application/models/BootOsMapper.php b/application/models/BootOsMapper.php index a6e9a7f..66de08d 100644 --- a/application/models/BootOsMapper.php +++ b/application/models/BootOsMapper.php @@ -14,7 +14,9 @@ class Application_Model_BootOsMapper ->where($criteria . ' = ?', $value); $stmt = $select->query(); $result = $stmt->fetchAll(); + return $result; + }catch (Zend_Exception $e) { echo "Error message 2: " . $e->getMessage() . "\n"; } @@ -87,7 +89,7 @@ class Application_Model_BootOsMapper $entry->setID($row->bootosID)->setConfigID($row->configID)->setGroupID($row->groupID)->setMembershipID($row->membershipID)->setTitle($row->title)->setPath_init($row->path_init)->setPath_kernel($row->path_kernel)->setDefaultkcl($row->defaultkcl)->setCreated($row->created)->setDescription($row->description)->setExpires($row->expires)->setPublic($row->public); - $entries[] = $entry; + $entries[$row->bootosID] = $entry; } return $entries; } -- cgit v1.2.3-55-g7522