Skip to content

Commit

Permalink
Resolved issue 0000842: Variable $user is erased on rating page
Browse files Browse the repository at this point in the history
Merge branch-1_7 2473:2474 into BSF

git-svn-id: http://piwigo.org/svn/trunk@2475 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rub committed Aug 15, 2008
1 parent ce1d749 commit 9824cbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/rating.php
Expand Up @@ -229,22 +229,22 @@

if ( isset($users[$row['user_id']]) )
{
$user = $users[$row['user_id']];
$user_rate = $users[$row['user_id']];
}
else
{
$user = '? '. $row['user_id'];
$user_rate = '? '. $row['user_id'];
}
if ( strlen($row['anonymous_id'])>0 )
{
$user .= '('.$row['anonymous_id'].')';
$user_rate .= '('.$row['anonymous_id'].')';
}

$tpl_image['rates'][] =
array(
'DATE' => format_date($row['date']),
'RATE' => $row['rate'],
'USER' => $user,
'USER' => $user_rate,
'U_DELETE' => $url_del
);
}
Expand Down

0 comments on commit 9824cbb

Please sign in to comment.