コード例 #1
0
ファイル: common.php プロジェクト: revolveweb/ppi-framework
/**
 * Check if the database has been installed
 */
function is_db_installed()
{
    $config = PPI_Registry::getInstance()->get('config');
    $oUser = new PPI_Model_User();
    $rows = $oUser->query('SELECT ' . $config->system->defaultUserTable . ' FROM ' . $config->system->defaultUserTable . ' LIMIT 1');
    return count($rows) > 0;
}