aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-11-29 08:32:02 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-11-29 08:32:02 +0000
commit161996f06191e184c610aad851d606030fd7614c (patch)
treedcb5a4a6cde32199adf3897305a1e28ee4f3b1fd /phpBB
parent32e0512027553d100491561abd5670f8e4d625a4 (diff)
downloadforums-161996f06191e184c610aad851d606030fd7614c.tar
forums-161996f06191e184c610aad851d606030fd7614c.tar.gz
forums-161996f06191e184c610aad851d606030fd7614c.tar.bz2
forums-161996f06191e184c610aad851d606030fd7614c.tar.xz
forums-161996f06191e184c610aad851d606030fd7614c.zip
Dumped array_merge for code that should be php3 compatable
git-svn-id: file:///svn/phpbb/trunk@1471 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/admin/admin_styles.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/phpBB/admin/admin_styles.php b/phpBB/admin/admin_styles.php
index 98c8100c43..d743a54f39 100644
--- a/phpBB/admin/admin_styles.php
+++ b/phpBB/admin/admin_styles.php
@@ -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 . '" />';
}