From 918914926b13253ef3a9af40bcdb0ea8b900f497 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 15 May 2005 20:17:35 +0000 Subject: - 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 --- phpBB/mcp.php | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'phpBB/mcp.php') 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') { @@ -438,33 +440,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 */ -- cgit v1.2.1