Skip to content

Commit db627e0

Browse files
committed
Skip missing settings in repair_settings
If a setting was not found in the database, an error would be thrown. Just skip those settings. Signed-off-by: Oscar Rydhé <[email protected]>
1 parent ff24fcd commit db627e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

repair_settings.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,9 @@ function restoreAll()
731731

732732
foreach ($section as $setting => $info)
733733
{
734+
if (!array_key_exists($setting, $settings))
735+
continue;
736+
734737
if ($info[0] == 'hidden')
735738
continue;
736739

0 commit comments

Comments
 (0)