Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit f544603

Browse files
author
mattpass
committed
array_splice not unset to change int array keys
1 parent f196bb9 commit f544603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
// Remove any previous files that are no longer there
100100
for ($i = 0; $i < count($ICEcoderUserSettings['previousFiles']); $i++) {
101101
if (false === file_exists(str_replace("|", "/", $ICEcoderUserSettings['previousFiles'][$i]))) {
102-
unset($ICEcoderUserSettings['previousFiles'][$i]);
102+
array_splice($ICEcoderUserSettings['previousFiles'], $i, 1);
103103
}
104104
}
105105

0 commit comments

Comments
 (0)