mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
php7 환경에서 발생하는 오류 수정
non-static한 함수를 static하게 사용하여 발생하는 오류를 수정합니다.
This commit is contained in:
parent
94d43c2b76
commit
435710b72a
1 changed files with 12 additions and 8 deletions
|
|
@ -215,16 +215,18 @@ class DB
|
|||
*/
|
||||
function getEnableList()
|
||||
{
|
||||
if(!$this->supported_list)
|
||||
is_a($this, 'Context') ? $self = $this : $self = self::getInstance();
|
||||
|
||||
if(!$self->supported_list)
|
||||
{
|
||||
$oDB = new DB();
|
||||
$this->supported_list = $oDB->_getSupportedList();
|
||||
$self->supported_list = $oDB->_getSupportedList();
|
||||
}
|
||||
|
||||
$enableList = array();
|
||||
if(is_array($this->supported_list))
|
||||
if(is_array($self->supported_list))
|
||||
{
|
||||
foreach($this->supported_list AS $key => $value)
|
||||
foreach($self->supported_list AS $key => $value)
|
||||
{
|
||||
if($value->enable)
|
||||
{
|
||||
|
|
@ -242,16 +244,18 @@ class DB
|
|||
*/
|
||||
function getDisableList()
|
||||
{
|
||||
if(!$this->supported_list)
|
||||
is_a($this, 'Context') ? $self = $this : $self = self::getInstance();
|
||||
|
||||
if(!$self->supported_list)
|
||||
{
|
||||
$oDB = new DB();
|
||||
$this->supported_list = $oDB->_getSupportedList();
|
||||
$self->supported_list = $oDB->_getSupportedList();
|
||||
}
|
||||
|
||||
$disableList = array();
|
||||
if(is_array($this->supported_list))
|
||||
if(is_array($self->supported_list))
|
||||
{
|
||||
foreach($this->supported_list AS $key => $value)
|
||||
foreach($self->supported_list AS $key => $value)
|
||||
{
|
||||
if(!$value->enable)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue