Chyba znalazłem bład

tkwił w linii pliku includes/functions.php. Linię zaznaczyłem na czerwono. W pliku na forum tej linii nie było. Pozostaje mi sprawdzić pełną funkcjonalność, ale to da się zrobić
Dzięki Wszystkim za pomoc
function add_log()
{
global $db, $user;
// In phpBB 3.1.x i want to have logging in a class to be able to control it
// For now, we need a quite hakish approach to circumvent logging for some actions
// @todo implement cleanly
if (!empty($GLOBALS['skip_add_log']))
{
return false;
}
$args = func_get_args();
$mode = array_shift($args);
$reportee_id = ($mode == 'user') ? intval(array_shift($args)) : '';
$forum_id = ($mode == 'mod') ? intval(array_shift($args)) : ''; $topic_id = ($mode == 'mod') ? intval(array_shift($args)) : '';
$album_id = ($mode == 'gallery') ? intval(array_shift($args)) : '';
$image_id = ($mode == 'gallery') ? intval(array_shift($args)) : '';
$action = array_shift($args);
$data = (!sizeof($args)) ? '' : serialize($args);
$sql_ary = array(
'user_id' => (empty($user->data)) ? ANONYMOUS : $user->data['user_id'],
'log_ip' => $user->ip,
'log_time' => time(),
'log_operation' => $action,
'log_data' => $data,
);