Ok, it looks like it's all fixed. What I did was to change the code of Post Thanks:
Original (starting from line 212):
PHP Code:
function fetch_thanks_bit($forumid = 0, $thanks)
{
global $vbulletin;
($hook = vBulletinHook::fetch_hook('post_thanks_function_fetch_thanks_bit_start')) ? eval($hook) : false;
$number_rows = count($thanks);
$cmpt=1;
foreach ($thanks AS $thank)
{
if ($cmpt<$number_rows)
{
$virg=",";
}
else
{
$virg="";
}
if (show_thanks_date($forumid))
{
$date_thank = vbdate($vbulletin->options['dateformat'], $thank['date'], true);
}
eval('$liste_user .= " ' . fetch_template('post_thanks_box_bit') . '";');
$cmpt++;
}
($hook = vBulletinHook::fetch_hook('post_thanks_function_fetch_thanks_bit_end')) ? eval($hook) : false;
return $liste_user;
}
Changed to add a check for $thanks:
PHP Code:
function fetch_thanks_bit($forumid = 0, $thanks)
{
global $vbulletin;
if ($thanks)
{
($hook = vBulletinHook::fetch_hook('post_thanks_function_fetch_thanks_bit_start')) ? eval($hook) : false;
$number_rows = count($thanks);
$cmpt=1;
foreach ($thanks AS $thank)
{
if ($cmpt<$number_rows)
{
$virg=",";
}
else
{
$virg="";
}
if (show_thanks_date($forumid))
{
$date_thank = vbdate($vbulletin->options['dateformat'], $thank['date'], true);
}
eval('$liste_user .= " ' . fetch_template('post_thanks_box_bit') . '";');
$cmpt++;
}
($hook = vBulletinHook::fetch_hook('post_thanks_function_fetch_thanks_bit_end')) ? eval($hook) : false;
}
return $liste_user;
}