summaryrefslogtreecommitdiffstats
path: root/application/models/FilterEntriesMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/FilterEntriesMapper.php')
-rw-r--r--application/models/FilterEntriesMapper.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/application/models/FilterEntriesMapper.php b/application/models/FilterEntriesMapper.php
index bf57dbd..0f070ee 100644
--- a/application/models/FilterEntriesMapper.php
+++ b/application/models/FilterEntriesMapper.php
@@ -60,10 +60,8 @@ class Application_Model_FilterEntriesMapper
if (0 == count($result) && null == $id1) {
$this->getDbTable()->insert($data);
- echo 'inserted';
} else {
- print_r($this->getDbTable()->update($data, array('filterentriesID = ?' => $id1)));
- echo 'updated';
+ $this->getDbTable()->update($data, array('filterentriesID = ?' => $id1));
}
}catch (Zend_Exception $e) {
@@ -78,11 +76,9 @@ class Application_Model_FilterEntriesMapper
if ((null == $id1)) {
- echo 'case1';
return;
} else {
$this->getDbTable()->delete(array('filterentriesID = ?' => $id1));
- echo 'case2';
}
}catch (Zend_Exception $e) {
@@ -93,11 +89,9 @@ class Application_Model_FilterEntriesMapper
public function find($filterentriesID, Application_Model_FilterEntries $filterentries)
{
$result = $this->getDbTable()->find($filterentriesID);
- echo 'dump1';
if (0 == count($result)) {
return;
- }
- echo 'dump2';
+ }
$row = $result->current();
$filterentries->setID($row->filterentriesID)