Merge pull request #1704 from YJSoft-Forth/php7

php7 환경에서 발생하는 오류 수정
This commit is contained in:
bnu 2015-09-22 13:12:14 +09:00
commit cebe1018ec

View file

@ -215,16 +215,18 @@ class DB
*/
function getEnableList()
{
if(!$this->supported_list)
is_a($this, 'DB') ? $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, 'DB') ? $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)
{