From: Roland Haeder Date: Sat, 17 May 2014 21:46:15 +0000 (+0200) Subject: Much easier (but not reliable) test. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aea999914f021557cf9d207a84ca4e65871adb45;p=core.git Much easier (but not reliable) test. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/stacker/file/class_BaseFileStack.php b/inc/classes/main/stacker/file/class_BaseFileStack.php index 70bd7006..21315929 100644 --- a/inc/classes/main/stacker/file/class_BaseFileStack.php +++ b/inc/classes/main/stacker/file/class_BaseFileStack.php @@ -155,9 +155,6 @@ class BaseFileStack extends BaseStacker { * @return $isInitialized Whether the file's size is zero */ private function isFileInitialized () { - // Default is not initialized - $isInitialized = FALSE; - // Get it from iterator which holds the pointer instance. If FALSE is returned $fileSize = $this->getIteratorInstance()->size(); @@ -168,10 +165,7 @@ class BaseFileStack extends BaseStacker { assert(is_int($fileSize)); // Is more than 0 returned? - if ($fileSize > 0) { - // So is the header written? - $isInitialized = $this->getIteratorInstance()->isHeaderInitialized(); - } // END - if + $isInitialized = ($fileSize > 0); // Return result return $isInitialized;