Revert "Fix compatibility with PHP 8.1"

This reverts commit 1d1e927d56.
This commit is contained in:
slawkens
2023-02-02 15:39:20 +01:00
parent 1fb1fb3ae9
commit 77460b0832
7 changed files with 21 additions and 21 deletions

View File

@@ -11,7 +11,7 @@
defined('MYAAC') or die('Direct access not allowed!');
$configForumTablePrefix = config('forum_table_prefix');
if(null !== $configForumTablePrefix && !empty(trim($configForumTablePrefix))) {
if(!empty(trim($configForumTablePrefix))) {
if(!in_array($configForumTablePrefix, array('myaac_', 'z_'))) {
throw new RuntimeException('Invalid value for forum_table_prefix in config.php. Can be only: "myaac_" or "z_".');
}
@@ -322,4 +322,4 @@ class Forum
return $hasAccess;
}
}
?>
?>