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