From ce16bbc74ea3a8f63fd0b827be109af2acb6948c Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sun, 05 Apr 2009 05:50:49 -0400
Subject: [PATCH] - Fix "Initialize Database" button missing from installer (#1485802)
---
CHANGELOG | 1 +
installer/test.php | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index f4774c5..3e1c3ec 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
+- Fix "Initialize Database" button missing from installer (#1485802)
- Fix compose window doesn't fit 1024x768 window (#1485396)
- Fix service not available error when pressing back from compose dialog (#1485552)
- Fix using mail() on Windows (#1485779)
diff --git a/installer/test.php b/installer/test.php
index d66fe34..5740a64 100644
--- a/installer/test.php
+++ b/installer/test.php
@@ -159,7 +159,7 @@
// test database
if ($db_working) {
$db_read = $DB->query("SELECT count(*) FROM {$RCI->config['db_table_users']}");
- if (!$db_read) {
+ if ($DB->db_error) {
$RCI->fail('DB Schema', "Database not initialized");
echo '<p><input type="submit" name="initdb" value="Initialize database" /></p>';
$db_working = false;
--
Gitblit v1.9.1