More query reduction.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2004-04-26 19:18:25 +00:00
parent 788f328d6b
commit f8e2f4f2f4
3 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,8 @@ define('WPINC', 'wp-includes');
require_once (ABSPATH . WPINC . '/wp-db.php');
$wpdb->hide_errors();
if (!$wpdb->get_row("SELECT * FROM $tableusers LIMIT 1") && !strstr($_SERVER['REQUEST_URI'], 'install.php')) {
$users = $wpdb->get_results("SELECT * FROM $tableusers");
if (!$users && !strstr($_SERVER['REQUEST_URI'], 'install.php')) {
die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
}
$wpdb->show_errors();