From 25941f4b493ce6a5e361ed8e7f3963652dc867d2 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 13 Sep 2019 16:59:10 +0900 Subject: [PATCH] Fix in explode in Basic class --- www/includes/admin_set_paths.php | 2 +- www/lib/CoreLibs/Basic.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/includes/admin_set_paths.php b/www/includes/admin_set_paths.php index 8b6cd8b0..0ca5b037 100644 --- a/www/includes/admin_set_paths.php +++ b/www/includes/admin_set_paths.php @@ -37,7 +37,7 @@ if (!isset($CONTENT_INCLUDE)) { $FORM_NAME = !isset($FORM_NAME) || !$FORM_NAME ? str_replace(".php", "", $cms->page_name) : $FORM_NAME; // set local page title $L_TITLE = ucfirst(str_replace('_', ' ', $cms->getPageName(1))).(defined(G_TITLE) ? ' - '.G_TITLE : ''); -// strip tpl and replace it with inc +// strip tpl and replace it with php // php include file per page $cms->INC_TEMPLATE_NAME = str_replace(".tpl", ".php", $CONTENT_INCLUDE); // javascript include per page diff --git a/www/lib/CoreLibs/Basic.php b/www/lib/CoreLibs/Basic.php index c823c304..bb70aef0 100644 --- a/www/lib/CoreLibs/Basic.php +++ b/www/lib/CoreLibs/Basic.php @@ -1526,7 +1526,7 @@ class Basic // DESC : a simple wrapper for the date format public static function dateStringFormat($timestamp, bool $show_micro = true): string { - list ($timestamp, $ms) = explode('.', round($timestamp, 4)); + list ($timestamp, $ms) = explode('.', (string)round($timestamp, 4)); $string = date("Y-m-d H:i:s", $timestamp); if ($show_micro) { $string .= ' '.$ms.'ms';