Skip to content

Commit

Permalink
#3532 - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlesnikov committed Oct 14, 2021
1 parent 7bc037f commit 94b07df
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions inc/classes/BxDolDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -1295,12 +1295,20 @@ protected function errorOutput($aError)

function getParam($sParamName, $bUseCache = true)
{
return BxDolDb::getInstance()->getParam($sParamName, $bUseCache);
$oObj = BxDolDb::getInstance();
if ($oObj === null)
return false;

return $oObj->getParam($sParamName, $bUseCache);
}

function setParam($sParamName, $sParamVal)
{
return BxDolDb::getInstance()->setParam($sParamName, $sParamVal);
$oObj = BxDolDb::getInstance();
if ($oObj === null)
return false;

return $oObj->setParam($sParamName, $sParamVal);
}

/** @} */

0 comments on commit 94b07df

Please sign in to comment.