@@ -113,11 +113,11 @@ |
||
113 | 113 | public function delete($filter) |
114 | 114 | { |
115 | 115 | $criteria = $this->getCriteriaFromFilter($filter); |
116 | - $res = $this->collection->remove($criteria, array(), $this->name); |
|
117 | - if($res === true) |
|
118 | - { |
|
116 | + $res = $this->collection->remove($criteria, array(), $this->name); |
|
117 | + if($res === true) |
|
118 | + { |
|
119 | 119 | return true; |
120 | - } |
|
120 | + } |
|
121 | 121 | if($res === false || $res['err'] !== null) |
122 | 122 | { |
123 | 123 | return false; |