Skip to content

Commit

Permalink
Fix tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Feb 12, 2014
1 parent e8a5615 commit f39b35e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions framework/Stream/lib/Horde/Stream.php
Expand Up @@ -169,11 +169,9 @@ public function length($utf8 = false)
while ($this->getChar() !== false) {
++$len;
}
} elseif (!$this->end()) {
throw new Horde_Stream_Exception('ERROR');
} else {
if (!$this->end()) {
throw new Horde_Stream_Exception('ERROR');
}

$len = $this->pos();
}

Expand Down

0 comments on commit f39b35e

Please sign in to comment.