Permalink
Browse files

Add remove function on collection

  • Loading branch information...
InformatiqueProg authored and roadster31 committed Oct 7, 2017
1 parent 3f61082 commit 52d45101f4e1fb78a731d9b40276affea7334dd3
Showing with 11 additions and 1 deletion.
  1. +11 −1 core/lib/Thelia/Core/Template/Element/LoopResult.php
@@ -80,7 +80,17 @@ public function addRow(LoopResultRow $row)
$this->collection[] = $row;
}
/**
* @param int $key
*/
public function remove($key)
{
if (isset($this->collection[$key])) {
unset($this->collection[$key]);
}
}
/**
* Adjust the collection once all results have been added.
*/

0 comments on commit 52d4510

Please sign in to comment.