1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 08:47:45 +02:00

- 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
This commit is contained in:
Meik Sievertsen
2005-05-15 20:17:35 +00:00
parent 4c207e5510
commit 918914926b
17 changed files with 145 additions and 112 deletions

View File

@@ -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
*/