w admin/admin_jr_admin.php zamień:
Kod:
function jr_admin_user_exist($user_id)
{
global $db, $lang;
//Do a query and see if our user exists with isset
$row = sql_query_nivisec(
'SELECT start_date FROM ' . JR_ADMIN_TABLE . " WHERE user_id = $user_id",
$lang['Error_Module_Table'],
false,
1
);
return (isset($row['start_date']));
}
na
Kod:
if (!function_exists(jr_admin_user_exist))
{
function jr_admin_user_exist($user_id)
{
global $db, $lang;
//Do a query and see if our user exists with isset
$row = sql_query_nivisec(
'SELECT start_date FROM ' . JR_ADMIN_TABLE . " WHERE user_id = $user_id",
$lang['Error_Module_Table'],
false,
1
);
return (isset($row['start_date']));
}
}
Autor postu otrzymał pochwałę