Fix a silly bug that isn't the mystery dump bug we were looking for, but could result...
[lhc/web/wiklou.git] / maintenance / dumpTextPass.php
index e85fe42..3d75131 100644 (file)
@@ -408,7 +408,7 @@ class TextPassDumper extends BackupDumper {
                // Subprocess may not send everything at once, we have to loop.
                while( $nbytes > strlen( $text ) ) {
                        $buffer = fread( $this->spawnRead, $nbytes - strlen( $text ) );
-                       if( $text === false ) break;
+                       if( $buffer === false ) break;
                        $text .= $buffer;
                }