diff options
Diffstat (limited to 'modules/gallery/models')
| -rw-r--r-- | modules/gallery/models/item.php | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 34c22021..485cd8cf 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -530,7 +530,7 @@ class Item_Model extends ORM_MPTT {     * the first child in the album is at position 1.     */    public function get_position($child, $where=array()) { -    if ($this->sort_order == "DESC") { +    if (!strcasecmp($this->sort_order, "DESC")) {        $comp = ">";      } else {        $comp = "<"; | 
