source/Application/Controller/Admin/LanguageMain.php
protected function _getAvailableLangBaseId()
    {
        $aBaseId = [];
        foreach ($this->_aLangData['params'] as $aLang) {
            $aBaseId[] = $aLang['baseId'];
        }

        $iNewId = 0;
        sort($aBaseId);
        $iTotal = count($aBaseId);

        //getting first available id
        while ($iNewId <= $iTotal) {
            if ($iNewId !== $aBaseId[$iNewId]) {
                break;
            }
            $iNewId++;
        }

        return $iNewId;
    }
protected function _getAvailableLangBaseId()
    {
        $aBaseId = [];
        foreach ($this->_aLangData['params'] as $aLang) {
            $aBaseId[] = $aLang['baseId'];
        }

        $iNewId = 0;
        sort($aBaseId);
        $iTotal = count($aBaseId);

        //getting first available id
        while ($iNewId <= $iTotal) {
            if ($iNewId !== $aBaseId[$iNewId]) {
                break;
            }
            $iNewId++;
        }

        return $iNewId;
    }
protected function _getAvailableLangBaseId ( ) { $ aBaseId = [ ] ; foreach ( $ this -> _aLangData [ 'params' ] as $ aLang ) { $ aBaseId [ ] = $ aLang [ 'baseId' ] ; } $ iNewId = 0 ; sort ( $ aBaseId ) ; $ iTotal = count ( $ aBaseId ) ; //getting first available id while ( $ iNewId <= $ iTotal ) { if ( $ iNewId !== $ aBaseId [ $ iNewId ] ) { break ; } $ iNewId ++ ; } return $ iNewId ; }
Get availabale language base ID

@return int
Get availabale language base ID