Commit a5fbfc1e authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-951 Do not compare for type, as key(false) returns 0 (integer).

Released under the Affero GNU General Public License (AGPL) version 3.
parent 0f1c5977
......@@ -884,7 +884,7 @@ class SyncCollections implements Iterator {
* @return boolean
*/
public function valid() {
return (key($this->collections) !== null && key($this->collections) !== false);
return (key($this->collections) != null && key($this->collections) != false);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment