From: Roland Haeder Date: Tue, 20 May 2014 20:01:25 +0000 (+0200) Subject: Only seek back to old position if the header has been flushed. X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=8a21e1ffb5dec3e25ae578eab611b7f14c68d649;ds=sidebyside Only seek back to old position if the header has been flushed. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index be6499dc..033718d9 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -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__)); }