$_PEAR now defined globally as new PEAR, so no static calls are made

This commit is contained in:
Mikael Nordfeldth
2013-09-23 22:27:17 +02:00
parent 8205c56e25
commit 9d3abc3600
4 changed files with 30 additions and 13 deletions

View File

@@ -751,12 +751,12 @@ class Memcached_DataObject extends Safe_DataObject
function _connect()
{
global $_DB_DATAOBJECT;
global $_DB_DATAOBJECT, $_PEAR;
$sum = $this->_getDbDsnMD5();
if (!empty($_DB_DATAOBJECT['CONNECTIONS'][$sum]) &&
!PEAR::isError($_DB_DATAOBJECT['CONNECTIONS'][$sum])) {
!$_PEAR->isError($_DB_DATAOBJECT['CONNECTIONS'][$sum])) {
$exists = true;
} else {
$exists = false;