Skip to content

Commit

Permalink
Bug #9202: Workaround PHP bug
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Aug 26, 2010
1 parent 9dfb314 commit ecdc9a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion turba/lib/List.php
Expand Up @@ -140,7 +140,11 @@ public function sort($order = null)
}

$this->_usortCriteria = $order;
usort($sorted_objects, array($this, '_cmp'));

/* Exceptions thrown inside a sort incorrectly cause an error. See
* Bug #9202. */
@usort($sorted_objects, array($this, '_cmp'));

$this->objects = $sorted_objects;
}

Expand Down

0 comments on commit ecdc9a2

Please sign in to comment.