Only seek back to old position if the header has been flushed.
authorRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 20:01:25 +0000 (22:01 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 20:01:25 +0000 (22:01 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/class_BaseFrameworkSystem.php

index be6499d..033718d 100644 (file)
@@ -3097,10 +3097,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                if ($flushHeader === TRUE) {
                        // Flush header
                        $this->flushFileHeader();
+
+                       // Seek to old position
+                       $this->seekToOldPosition();
                } // END - if
 
-               // Seek to old position
-               $this->seekToOldPosition();
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] EXIT!', __METHOD__, __LINE__));
        }