1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

PHP8 Forum code cleanup

This commit is contained in:
Cameron
2021-01-22 06:31:23 -08:00
parent aafd277331
commit 4a9cf379a6
5 changed files with 266 additions and 466 deletions

View File

@@ -82,7 +82,8 @@ if(!defined('IMAGE_new') && !defined('IMAGE_e'))
class e107forum
{
// var $fieldTypes = array();
private $userViewed, $permList;
private $userViewed;
private $permList = array();
public $modArray, $prefs;
private $forumData = array();
@@ -680,7 +681,12 @@ class e107forum
public function getForumPermList($what = null)
{
if(null !== $what) return (isset($this->permList[$what]) ? $this->permList[$what] : null);
if(null !== $what)
{
return (isset($this->permList[$what]) ? $this->permList[$what] : array());
}
return $this->permList;
}