1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 07:47:00 +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) {
$key = array_search($filename, $this->data);
if($key !== false) unset($this->data[$key]);
$key = $this->getKey($filename);
unset($this->data[$key]);
return $this;
}