Page MenuHomePhabricator

D15869.id38224.diff
No OneTemporary

D15869.id38224.diff

diff --git a/src/utils/PhutilBufferedIterator.php b/src/utils/PhutilBufferedIterator.php
--- a/src/utils/PhutilBufferedIterator.php
+++ b/src/utils/PhutilBufferedIterator.php
@@ -89,7 +89,7 @@
* @task iterator
*/
final public function valid() {
- return (bool)$this->data;
+ return (bool)count($this->data);
}

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 15, 8:54 PM (3 w, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714401
Default Alt Text
D15869.id38224.diff (335 B)

Event Timeline