diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-02-18 20:46:46 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-02-18 20:46:46 +0000 |
commit | a8938827898ed40d35f25b055a72a41a2c1567ef (patch) | |
tree | 4faaa2424bf609938dd526dc6c99cae8d25fdbf7 /include/functions_category.inc.php | |
parent | 3ef9e856c36e7b7b8530beb52c8667945a645cad (diff) |
- multisize thumb longest side can be smaller than the square size
- remove unused css, shorten/optimize php called very often (at least theoretically should be faster)
git-svn-id: http://piwigo.org/svn/trunk@13240 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_category.inc.php')
-rw-r--r-- | include/functions_category.inc.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index 5d66e75c5..9685d225b 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -388,12 +388,7 @@ function global_rank_compare($a, $b) function rank_compare($a, $b) { - if ($a['rank'] == $b['rank']) - { - return 0; - } - - return ($a['rank'] < $b['rank']) ? -1 : 1; + return $a['rank'] - $b['rank']; } /** |