diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-25 01:34:04 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-25 01:34:04 +0000 |
commit | 20673141861976f551064dd1b5a86c399f8e7a04 (patch) | |
tree | 5a5a68008dd3d236f62a06ce6e106efc8a241429 /core | |
parent | d432cba2cb8bc6064ae89d12a919f640bcc8379f (diff) |
untabify
Diffstat (limited to 'core')
-rw-r--r-- | core/models/item.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/models/item.php b/core/models/item.php index bd2d3024..2d254a49 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -344,13 +344,13 @@ class Item_Model extends ORM_MPTT { if ($height) { if (isset($max)) { - if ($width > $height) { - $height = (int)($max * ($height / $width)); - $width = $max; - } else { - $width = (int)($max * ($width / $height)); - $height = $max; - } + if ($width > $height) { + $height = (int)($max * ($height / $width)); + $width = $max; + } else { + $width = (int)($max * ($width / $height)); + $height = $max; + } } } else { // Missing thumbnail, can happen on albums with no photos yet. |