From 41043cbf0dc3f831d159a4c4283605c140230348 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 16 Oct 2014 12:00:11 +0000 Subject: bug 3162: because string(5) "35.10" == string(4) "35.1", we have to use === instead (or !==) git-svn-id: http://piwigo.org/svn/trunk@30106 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'admin/include') diff --git a/admin/include/functions.php b/admin/include/functions.php index 1ad514a13..7d29f5734 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -614,9 +614,7 @@ SELECT id, id_uppercat, uppercats, rank, 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, -- cgit v1.2.3