source/Core/Config.php
protected function _setConfVarFromDb($varName, $varType, $varVal)
    {
        if (($varName == 'sShopURL' || $varName == 'sSSLShopURL') &&
            (!$varVal || $this->isAdmin() === true)
        ) {
            return;
        }

        switch ($varType) {
            case 'arr':
            case 'aarr':
                $this->setConfigParam($varName, unserialize($varVal));
                break;
            case 'bool':
                $this->setConfigParam($varName, ($varVal == 'true' || $varVal == '1'));
                break;
            default:
                $this->setConfigParam($varName, $varVal);
                break;
        }
    }
protected function _setConfVarFromDb($varName, $varType, $varVal)
    {
        if (($varName == 'sShopURL' || $varName == 'sSSLShopURL') &&
            (!$varVal || $this->isAdmin() === true)
        ) {
            return;
        }

        switch ($varType) {
            case 'arr':
            case 'aarr':
                $this->setConfigParam($varName, unserialize($varVal));
                break;
            case 'bool':
                $this->setConfigParam($varName, ($varVal == 'true' || $varVal == '1'));
                break;
            default:
                $this->setConfigParam($varName, $varVal);
                break;
        }
    }
protected function _setConfVarFromDb ( $ varName , $ varType , $ varVal ) { if ( ( $ varName == 'sShopURL' || $ varName == 'sSSLShopURL' ) && ( ! $ varVal || $ this -> isAdmin ( ) === true ) ) { return ; } switch ( $ varType ) { case 'arr' : case 'aarr' : $ this -> setConfigParam ( $ varName , unserialize ( $ varVal ) ) ; break ; case 'bool' : $ this -> setConfigParam ( $ varName , ( $ varVal == 'true' || $ varVal == '1' ) ) ; break ; default : $ this -> setConfigParam ( $ varName , $ varVal ) ; break ; } }
Sets config variable to config object, first unserializing it by given type.
sShopURL and sSSLShopURL are skipped for admin or when URL values are not set

@param string $varName variable name
@param string $varType variable type - arr, aarr, bool or str
@param string $varVal  serialized by type value

@return null
Sets config variable to config object first unserializing it by given type . sShopURL and sSSLShopURL are skipped for admin or when URL values are not set