Problema con phpbb3 football 0.9.3
Publicado: 17 Mar 2011, 10:52
Hola, al intentar crear una nuevo equipo de futbol, con este MOD desde el ACP, me sale el sguiente error
Fatal error: Cannot redeclare user_get_id_name() (previously declared in /home/vol14/zobyhost.com/zoby_6743272/espartapsp.zobyhost.com/htdocs/includes/functions_user.php:27) in /home/vol14/zobyhost.com/zoby_6743272/espartapsp.zobyhost.com/htdocs/includes/functions_user.php on line 82
En el includes/fuctions_user.php, de la linea 27 a la 82, tengo esto
El MOD me lo descargue de aquí http://www.phpbb-es.com/foro/mods-desar ... ml#p176326
Como lo soluciono ?¿
Fatal error: Cannot redeclare user_get_id_name() (previously declared in /home/vol14/zobyhost.com/zoby_6743272/espartapsp.zobyhost.com/htdocs/includes/functions_user.php:27) in /home/vol14/zobyhost.com/zoby_6743272/espartapsp.zobyhost.com/htdocs/includes/functions_user.php on line 82
En el includes/fuctions_user.php, de la linea 27 a la 82, tengo esto
Código: Seleccionar todo
function user_get_id_name(&$user_id_ary, &$username_ary, $user_type = false)
{
global $db;
// Are both arrays already filled? Yep, return else
// are neither array filled?
if ($user_id_ary && $username_ary)
{
return false;
}
else if (!$user_id_ary && !$username_ary)
{
return 'NO_USERS';
}
$which_ary = ($user_id_ary) ? 'user_id_ary' : 'username_ary';
if ($$which_ary && !is_array($$which_ary))
{
$$which_ary = array($$which_ary);
}
$sql_in = ($which_ary == 'user_id_ary') ? array_map('intval', $$which_ary) : array_map('utf8_clean_string', $$which_ary);
unset($$which_ary);
$user_id_ary = $username_ary = array();
// Grab the user id/username records
$sql_where = ($which_ary == 'user_id_ary') ? 'user_id' : 'username_clean';
$sql = 'SELECT user_id, username
FROM ' . USERS_TABLE . '
WHERE ' . $db->sql_in_set($sql_where, $sql_in);
if ($user_type !== false && !empty($user_type))
{
$sql .= ' AND ' . $db->sql_in_set('user_type', $user_type);
}
$result = $db->sql_query($sql);
if (!($row = $db->sql_fetchrow($result)))
{
$db->sql_freeresult($result);
return 'NO_USERS';
}
do
{
$username_ary[$row['user_id']] = $row['username'];
$user_id_ary[] = $row['user_id'];
}
while ($row = $db->sql_fetchrow($result));
$db->sql_freeresult($result);
return false;
}
Como lo soluciono ?¿
