- cannot have type-hints :-(
This commit is contained in:
Roland Häder 2022-06-20 03:48:12 +02:00
parent 94a594eeb2
commit cd3b01fd82
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77
2 changed files with 2 additions and 2 deletions

View file

@ -223,7 +223,7 @@ class DBA
* @return boolean Are there rows for that condition? * @return boolean Are there rows for that condition?
* @throws \Exception * @throws \Exception
*/ */
public static function exists(string $table, array $condition): bool public static function exists($table, array $condition): bool
{ {
return DI::dba()->exists($table, $condition); return DI::dba()->exists($table, $condition);
} }

View file

@ -79,7 +79,7 @@ if (!empty($_REQUEST['scheme'])) {
$scheme = $_REQUEST['scheme']; $scheme = $_REQUEST['scheme'];
} }
$scheme = Strings::sanitizeFilePathItem($scheme); $scheme = Strings::sanitizeFilePathItem($scheme ?? '');
if (($scheme) && ($scheme != '---')) { if (($scheme) && ($scheme != '---')) {
if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) { if (file_exists('view/theme/frio/scheme/' . $scheme . '.php')) {