diff options
| author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-08-27 18:58:51 +0000 |
|---|---|---|
| committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-08-27 18:58:51 +0000 |
| commit | 691b1dc7fc959dcf4c112e3e06e621fc187edaa5 (patch) | |
| tree | a23e6827ea85029c747592fd13f897d3f6547a75 | |
| parent | 7d7a08eee624ebd75b73028624c74e0793b1425f (diff) | |
| download | forums-691b1dc7fc959dcf4c112e3e06e621fc187edaa5.tar forums-691b1dc7fc959dcf4c112e3e06e621fc187edaa5.tar.gz forums-691b1dc7fc959dcf4c112e3e06e621fc187edaa5.tar.bz2 forums-691b1dc7fc959dcf4c112e3e06e621fc187edaa5.tar.xz forums-691b1dc7fc959dcf4c112e3e06e621fc187edaa5.zip | |
Fixed: incorrect var names - Paul, please take a look if you have time
git-svn-id: file:///svn/phpbb/trunk@4442 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rw-r--r-- | phpBB/adm/admin_icons.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/adm/admin_icons.php b/phpBB/adm/admin_icons.php index 78c1f139f5..bf041701e9 100644 --- a/phpBB/adm/admin_icons.php +++ b/phpBB/adm/admin_icons.php @@ -305,7 +305,7 @@ function update_image_dimensions() ); if ($mode == 'emoticons') { - $img_sql = array_merge($sql, array( + $img_sql = array_merge($img_sql, array( 'emoticon' => stripslashes($_POST['emotion']), 'code' => htmlspecialchars(stripslashes($_POST['code'])) )); @@ -318,12 +318,12 @@ function update_image_dimensions() WHERE ' . $fields . "_id = $image_id"); $order_old = $db->sql_fetchfield($fields . '_order', 0, $result); - if ($order_old == $smile_order) + if ($order_old == $image_order) { $no_update = TRUE; } - if ($order_old > $smile_order) + if ($order_old > $image_order) { $sign = '+'; $where = $fields . "_order >= $image_order AND " . $fields . "_order < $order_old"; @@ -332,7 +332,7 @@ function update_image_dimensions() { $sign = '-'; $where = $fields . "_order > $order_old AND " . $fields . "_order < $image_order"; - $sql[$fields . '_order'] = $smile_order - 1; + $sql[$fields . '_order'] = $image_order - 1; } } else @@ -608,7 +608,7 @@ function update_image_dimensions() default: - // By default, check that smile_order is valid and fix it if necessary + // By default, check that image_order is valid and fix it if necessary $result = $db->sql_query('SELECT * FROM ' . $table . ' ORDER BY ' . $fields . '_order'); if ($row = $db->sql_fetchrow($result)) { |
