From 8a21e1ffb5dec3e25ae578eab611b7f14c68d649 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 20 May 2014 22:01:25 +0200 Subject: [PATCH] Only seek back to old position if the header has been flushed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/classes/main/class_BaseFrameworkSystem.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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__)); } -- 2.30.2