I am not sure if this is due to your modifications, or not. Look at the code below:
Code:
if ($post['warn_notes']==1 and ($useradmin==1 OR $usersmod==1 OR $usermod==1));
{
$get_notes=$DB_site->query("select w.*, u.username as warner from ".TABLE_PREFIX."warn_notes w
LEFT JOIN ".TABLE_PREFIX."user u on(u.userid=w.warned_by)
where warned_user='{$post['userid']}' order by warned_time desc");
$pnotes='';
$d='';
$t='';
while($notes=$DB_site->fetch_array($get_notes))
That says:
If the post has a note, and the user is administrator, super moderator or moderator, then do whatever follows.
If the post has no notes or if the user is nothing of the above, then obviously the parameter $pnotes never gets a value, so it should not show. I do not know if your changes have affected this procedure or not.