mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Fix issue processwire/processwire-issues#1046
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user