From: Banana Date: Sat, 12 Nov 2022 13:02:01 +0000 (+0100) Subject: small fix X-Git-Tag: 1.1~25^2 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=d01c89ec60e5fa65913ff0a1244cd7e3155d036a;p=scientia.git small fix --- 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);