Skip to content

Commit 98fe9b2

Browse files
author
\nrlucke
committed
fix remote import
1 parent 697d395 commit 98fe9b2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

controllers/block_manager.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -808,11 +808,12 @@ private function updateListKey(&$list, $oldkey, $newkey)
808808
private function updateListValue(&$list, $old_id, $new_id)
809809
{
810810
reset($list);
811-
$el = key($list);
812-
foreach($list[$el] as $key => $value) {
813-
if ($value == $old_id) {
814-
$list[$el][$key] = $new_id;
815-
return true;
811+
foreach($list as $el => $arr) {
812+
foreach($list[$el] as $key => $value) {
813+
if ($value == $old_id) {
814+
$list[$el][$key] = $new_id;
815+
return true;
816+
}
816817
}
817818
}
818819
$this->errors[] = _cw('Sortierung ist fehlgeschlagen');

0 commit comments

Comments
 (0)