Use print_r() instead of direct value.
[core.git] / inc / classes / main / class_BaseFrameworkSystem.php
index 29d5459ceecb3a56194ca8a5e91f09930a3ba64f..217920972cee11886751fead79aae0ede6f89997 100644 (file)
@@ -512,7 +512,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                $this->debugBackTrace(sprintf('Tried to set a missing field. name=%s, value[%s]=%s',
                        $name,
                        gettype($value),
-                       $value
+                       print_r($value, TRUE)
                ));
        }
 
@@ -2958,6 +2958,9 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         * @return      $isInitialized  Whether the file header is initialized
         */
        protected function isFileHeaderInitialized () {
+               // Is the method there?
+               assert(is_callable(array($this, 'readFileHeader')));
+
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__));
                // Default is not initialized
                $isInitialized = FALSE;