We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db627e0 commit c72d3a7Copy full SHA for c72d3a7
repair_settings.php
@@ -1079,7 +1079,8 @@ function set_settings()
1079
if ($context['smfVersion'] == '2.1')
1080
{
1081
$setString[] = array('attachmentUploadDir', json_encode($attach_dirs));
1082
- $setString[] = array('attachment_basedirectories', json_encode($attach_base_dirs));
+ if (!empty($attach_base_dirs))
1083
+ $setString[] = array('attachment_basedirectories', json_encode($attach_base_dirs));
1084
}
1085
// Only one dir...or maybe nothing at all
1086
elseif (count($attach_dirs) > 1)
0 commit comments