diff --git a/src/crunchResource.php b/src/crunchResource.php index ce50a6d..bd73ea2 100644 --- a/src/crunchResource.php +++ b/src/crunchResource.php @@ -163,6 +163,7 @@ public function count(){ */ public function delete(){ foreach($this->data as $d) unset($this->base->tbdata['data'][$d['__dbid']]); + $this->base->tbdata['data'] = array_values($this->base->tbdata['data']); $this->base->_saveData(); return true; }