From: Michael M Slusarz Date: Thu, 26 Aug 2010 17:46:10 +0000 (-0600) Subject: Bug #9202: Workaround PHP bug X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ecdc9a249810e98c529c5bf5fc7e6be32d4a1c2f;p=horde.git Bug #9202: Workaround PHP bug --- diff --git a/turba/lib/List.php b/turba/lib/List.php index 1dcb56748..c14126570 100644 --- a/turba/lib/List.php +++ b/turba/lib/List.php @@ -140,7 +140,11 @@ class Turba_List implements Countable } $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; }