mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Dumped array_merge for code that should be php3 compatable
git-svn-id: file:///svn/phpbb/trunk@1471 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -464,6 +464,8 @@ switch($mode)
|
||||
|
||||
$style_id = $HTTP_GET_VARS['style_id'];
|
||||
|
||||
$selected_names = array();
|
||||
$selected_values = array();
|
||||
//
|
||||
// Fetch the Theme Info from the db
|
||||
//
|
||||
@@ -490,7 +492,22 @@ switch($mode)
|
||||
|
||||
$selected_names = $db->sql_fetchrow($result);
|
||||
|
||||
$selected = array_merge($selected_values, $selected_names);
|
||||
//$selected = array_merge($selected_values, $selected_names);
|
||||
if(count($selected_values))
|
||||
{
|
||||
while(list($key, $val) = each($selected_values))
|
||||
{
|
||||
$selected[$key] = $val;
|
||||
}
|
||||
}
|
||||
|
||||
if($selected_names)
|
||||
{
|
||||
while(list($key, $val) = each($selected_names))
|
||||
{
|
||||
$selected[$key] = $val;
|
||||
}
|
||||
}
|
||||
|
||||
$s_hidden_fields = '<input type="hidden" name="style_id" value="' . $style_id . '" />';
|
||||
}
|
||||
|
Reference in New Issue
Block a user