mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-24 01:03:05 +02:00
fix some bugs... again. :)
git-svn-id: file:///svn/phpbb/trunk@6165 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -631,25 +631,30 @@ class acp_attachments
|
||||
|
||||
$img_path = $config['upload_icons_path'];
|
||||
|
||||
$imglist = filelist($phpbb_root_path . $img_path);
|
||||
$imglist = array_values($imglist);
|
||||
$imglist = $imglist[0];
|
||||
|
||||
$filename_list = '';
|
||||
$no_image_select = false;
|
||||
foreach ($imglist as $key => $img)
|
||||
{
|
||||
if (!$ext_group_row['upload_icon'])
|
||||
{
|
||||
$no_image_select = true;
|
||||
$selected = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$selected = ($ext_group_row['upload_icon'] == $img) ? ' selected="selected"' : '';
|
||||
}
|
||||
|
||||
$filename_list .= '<option value="' . htmlspecialchars($img) . '"' . $selected . '>' . htmlspecialchars($img) . '</option>';
|
||||
$imglist = filelist($phpbb_root_path . $img_path);
|
||||
|
||||
if (sizeof($imglist))
|
||||
{
|
||||
$imglist = array_values($imglist);
|
||||
$imglist = $imglist[0];
|
||||
|
||||
foreach ($imglist as $key => $img)
|
||||
{
|
||||
if (!$ext_group_row['upload_icon'])
|
||||
{
|
||||
$no_image_select = true;
|
||||
$selected = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$selected = ($ext_group_row['upload_icon'] == $img) ? ' selected="selected"' : '';
|
||||
}
|
||||
|
||||
$filename_list .= '<option value="' . htmlspecialchars($img) . '"' . $selected . '>' . htmlspecialchars($img) . '</option>';
|
||||
}
|
||||
}
|
||||
|
||||
$i = 0;
|
||||
|
Reference in New Issue
Block a user