mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
32e0512027
commit
161996f061
1 changed files with 18 additions and 1 deletions
|
@ -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 . '" />';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue