/** * 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; }