php7 환경에서 발생하는 오류 수정

non-static한 함수를 static하게 사용하여 발생하는 오류를 수정합니다.
This commit is contained in:
YJSoft 2015-08-12 18:33:24 +09:00
parent 94d43c2b76
commit 435710b72a

View file

@ -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)
{