diff options
Diffstat (limited to 'businesslayer')
-rw-r--r-- | businesslayer/itembusinesslayer.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/businesslayer/itembusinesslayer.php b/businesslayer/itembusinesslayer.php index fd01506a6..d97108431 100644 --- a/businesslayer/itembusinesslayer.php +++ b/businesslayer/itembusinesslayer.php @@ -128,15 +128,7 @@ class ItemBusinessLayer extends BusinessLayer { * old, the id is taken */ public function autoPurgeOld(){ - $readAndNotStarred = - $this->mapper->getReadOlderThanThreshold($this->autoPurgeCount); - - // delete entries with a lower id than last item - if($this->autoPurgeCount > 0 - && isset($readAndNotStarred[$this->autoPurgeCount-1])){ - $this->mapper->deleteReadOlderThanId( - $readAndNotStarred[$this->autoPurgeCount-1]->getId()); - } + $this->mapper->deleteReadOlderThanThreshold($this->autoPurgeCount); } |