diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2005-05-15 20:17:35 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-05-15 20:17:35 +0000 |
| commit | 918914926b13253ef3a9af40bcdb0ea8b900f497 (patch) | |
| tree | 2d1e0313e99f45e82a2f5081dfb450de352dad28 /phpBB/mcp.php | |
| parent | 4c207e5510a77931d3eed6fc065f294c8f675f82 (diff) | |
| download | forums-918914926b13253ef3a9af40bcdb0ea8b900f497.tar forums-918914926b13253ef3a9af40bcdb0ea8b900f497.tar.gz forums-918914926b13253ef3a9af40bcdb0ea8b900f497.tar.bz2 forums-918914926b13253ef3a9af40bcdb0ea8b900f497.tar.xz forums-918914926b13253ef3a9af40bcdb0ea8b900f497.zip | |
- request_var updates
- added group selection to pm filter
- fixed activation/deletion of inactive user accounts in admin index
- fixed some color swatch bugs
git-svn-id: file:///svn/phpbb/trunk@5152 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/mcp.php')
| -rw-r--r-- | phpBB/mcp.php | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php index f5ce9ea16c..49c8526e2a 100644 --- a/phpBB/mcp.php +++ b/phpBB/mcp.php @@ -326,11 +326,13 @@ if (!$user->data['is_registered']) $quickmod = (isset($_REQUEST['quickmod'])) ? true : false; $action = request_var('action', ''); +$action_ary = request_var('action', array('' => 0)); -if (is_array($action)) +if (sizeof($action_ary)) { list($action, ) = each($action); } +unset($action_ary); if ($action == 'merge_select') { @@ -439,33 +441,6 @@ switch ($mode) // LITTLE HELPER /** -* request_var, the array way -*/ -function get_array($var, $default_value) -{ - $ids = request_var($var, $default_value); - - if (!is_array($ids)) - { - if (!$ids) - { - return $default_value; - } - - $ids = array($ids); - } - - $ids = array_unique($ids); - - if (sizeof($ids) == 1 && !$ids[0]) - { - return $default_value; - } - - return $ids; -} - -/** * Build simple hidden fields from array */ function build_hidden_fields($field_ary) |
