projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9351a5d
)
Fix warning if no indices exist in object.
author
Michael M Slusarz
<slusarz@curecanti.org>
Sat, 18 Sep 2010 06:26:11 +0000
(
00:26
-0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Mon, 20 Sep 2010 05:24:46 +0000
(23:24 -0600)
imp/lib/Indices.php
patch
|
blob
|
history
diff --git
a/imp/lib/Indices.php
b/imp/lib/Indices.php
index
208af08
..
b70edaf
100644
(file)
--- a/
imp/lib/Indices.php
+++ b/
imp/lib/Indices.php
@@
-203,8
+203,9
@@
class IMP_Indices implements Countable, Iterator
public function rewind()
{
- reset($this->_indices);
- reset(current($this->_indices));
+ if (reset($this->_indices)) {
+ reset(current($this->_indices));
+ }
}
public function valid()