mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user