wurst wrote:
$voted = ((int)$user->data['voted_for_maps']);
Maybe this has all been resolved, but here you're casting at the wrong spot, you're casting $user.

Code:
echo "<img border="0" src="./images/icons/user_".((1 == $voted) ? '' : 'not_')."voted.gif" >n";