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:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user