1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00
This commit is contained in:
Ryan Cramer
2019-12-06 14:05:45 -05:00
parent f95fa3e3a3
commit 103adbc0e1

View File

@@ -106,8 +106,8 @@ class FilenameArray implements \IteratorAggregate, \Countable {
* *
*/ */
public function remove($filename) { public function remove($filename) {
$key = array_search($filename, $this->data); $key = $this->getKey($filename);
if($key !== false) unset($this->data[$key]); unset($this->data[$key]);
return $this; return $this;
} }