From d01c89ec60e5fa65913ff0a1244cd7e3155d036a Mon Sep 17 00:00:00 2001 From: Banana Date: Sat, 12 Nov 2022 14:02:01 +0100 Subject: [PATCH] small fix --- webroot/config/config.php.default | 5 ++--- webroot/lib/summoner.class.php | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/webroot/config/config.php.default b/webroot/config/config.php.default index e02e4cd..7098d44 100644 --- a/webroot/config/config.php.default +++ b/webroot/config/config.php.default @@ -44,7 +44,6 @@ const FRONTEND_PASSWORD = 'pass'; # Think of it as a key. Change it often to avoid any abuse. # The description will be used in the log files const UPLOAD_SECRET = array( - 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #1', - 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #2' - ) + 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #1', + 'PLEASE CHANGE YOUR SECRET' => 'Your description for this secret #2' ); diff --git a/webroot/lib/summoner.class.php b/webroot/lib/summoner.class.php index cf79fdd..34bd8a0 100644 --- a/webroot/lib/summoner.class.php +++ b/webroot/lib/summoner.class.php @@ -27,7 +27,7 @@ class Summoner { * * @param string $input The string to check * @param string $mode How the string should be checked - * @param mixed $limit If int given the string is checked for length + * @param string $limit If int given the string is checked for length * * @return bool * @@ -38,7 +38,7 @@ class Summoner { * the replace should be empty, otherwise are there chars which are not * allowed */ - static function validate(string $input, string $mode='text', mixed $limit=false): bool { + static function validate(string $input, string $mode='text', string $limit=''): bool { // check if we have input $input = trim($input); -- 2.39.5