projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dfb314
)
Bug #9202: Workaround PHP bug
author
Michael M Slusarz
<slusarz@curecanti.org>
Thu, 26 Aug 2010 17:46:10 +0000
(11:46 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Thu, 26 Aug 2010 17:46:16 +0000
(11:46 -0600)
turba/lib/List.php
patch
|
blob
|
history
diff --git
a/turba/lib/List.php
b/turba/lib/List.php
index
1dcb567
..
c141265
100644
(file)
--- 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;
}