- cannot have type-hints :-(
This commit is contained in:
Roland Häder 2022-06-20 03:48:12 +02:00
parent 94a594eeb2
commit cd3b01fd82
No known key found for this signature in database
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?
* @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);
}

View File

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