diff --git a/classes/MD_STD b/classes/MD_STD index 08c9582..b8d8be5 160000 --- a/classes/MD_STD +++ b/classes/MD_STD @@ -1 +1 @@ -Subproject commit 08c9582210be11ba211d012e8aea2838fd1e9909 +Subproject commit b8d8be54b9a21945be4a9396b6065ac4cc940deb diff --git a/functions/functions.php b/functions/functions.php index 76f9b95..de0e9f7 100644 --- a/functions/functions.php +++ b/functions/functions.php @@ -77,7 +77,7 @@ function mdErrorHandler(int $errno, string $string, string $file, int $line):voi $errorMsg = "*$errno ($string) at $file: line_ $line _"; $errorMsg .= $userMsg; $errorMsg .= " |-- Error generating page: $errorPage"; - $errorMsg .= " |-- Used RAM / Peak RAM / Allowed: " . MD_STD::human_filesize((string)memory_get_usage()) . " / " . MD_STD::human_filesize((string)memory_get_peak_usage()) . " / " . ini_get("memory_limit"); + $errorMsg .= " |-- Used RAM / Peak RAM / Allowed: " . MD_STD::human_filesize(memory_get_usage()) . " / " . MD_STD::human_filesize(memory_get_peak_usage()) . " / " . ini_get("memory_limit"); $errorMsg = str_replace(PHP_EOL, " ", $errorMsg); diff --git a/upload.php b/upload.php index 97a3329..f6df260 100644 --- a/upload.php +++ b/upload.php @@ -2,8 +2,7 @@ declare(strict_types = 1); require_once __DIR__ . "/functions/functions.php"; -$target = "csv/"; -$target .= basename($_FILES['uploaded']['name']); +$target = "csv/" . basename($_FILES['uploaded']['name']); $targetpart = basename($_FILES['uploaded']['name']); if (session_status() != PHP_SESSION_ACTIVE) {