X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConfig%2FJITConfigAdapter.php;h=b985d91c2122ade49efee07753ecfccaa9c1911a;hb=8dc5b04be7cd9cb2eb77ed9824815efe27369bee;hp=7b0c6b4173db3e02264cb6c9ca8fd2bfe0e3294b;hpb=4f2ae8868431952bd3acda1537ee899740cbf205;p=friendica.git diff --git a/src/Core/Config/JITConfigAdapter.php b/src/Core/Config/JITConfigAdapter.php index 7b0c6b4173..b985d91c21 100644 --- a/src/Core/Config/JITConfigAdapter.php +++ b/src/Core/Config/JITConfigAdapter.php @@ -3,7 +3,6 @@ namespace Friendica\Core\Config; use Friendica\BaseObject; use Friendica\Database\DBA; -use Friendica\Database\DBM; require_once 'include/dba.php'; @@ -12,7 +11,7 @@ require_once 'include/dba.php'; * * Default Config Adapter. Provides the best performance for pages loading few configuration variables. * - * @author Hypolite Petovan + * @author Hypolite Petovan */ class JITConfigAdapter extends BaseObject implements IConfigAdapter { @@ -57,7 +56,7 @@ class JITConfigAdapter extends BaseObject implements IConfigAdapter } $config = DBA::selectFirst('config', ['v'], ['cat' => $cat, 'k' => $k]); - if (DBM::is_result($config)) { + if (DBA::isResult($config)) { // manage array value $value = (preg_match("|^a:[0-9]+:{.*}$|s", $config['v']) ? unserialize($config['v']) : $config['v']);