Skip to content

Commit

Permalink
bug 3162: because string(5) "35.10" == string(4) "35.1", we have to u…
Browse files Browse the repository at this point in the history
…se === instead (or !==)

git-svn-id: http://piwigo.org/svn/trunk@30106 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Oct 16, 2014
1 parent a599995 commit 41043cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions admin/include/functions.php
Expand Up @@ -614,9 +614,7 @@ function update_global_rank()
str_replace(',', '.', $cat['uppercats'] )
);

if ( $cat['rank_changed']
or $new_global_rank!=$cat['global_rank']
)
if ($cat['rank_changed'] or $new_global_rank !== $cat['global_rank'])
{
$datas[] = array(
'id' => $id,
Expand Down

0 comments on commit 41043cb

Please sign in to comment.