summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-03-28 06:49:02 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-03-28 06:49:02 +0000
commit1e52f1788a44b94c0df1c1038d905b59ca3ab9de (patch)
tree63d646996c1066b3d8f84a4914cafb1f26fc5020
parent88de037aee43312733f3816c9aef753ba5efc7fc (diff)
- Fix SQL query for postgres
git-svn-id: https://svn.roundcube.net/trunk@4623 208e9e7b-5314-0410-a742-e7e81cd9613c
-rwxr-xr-xroundcubemail/bin/indexcontacts.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/bin/indexcontacts.sh b/roundcubemail/bin/indexcontacts.sh
index ac20e0441..e8dec2f63 100755
--- a/roundcubemail/bin/indexcontacts.sh
+++ b/roundcubemail/bin/indexcontacts.sh
@@ -35,7 +35,7 @@ if (!$db->is_connected() || $db->is_error())
die("No DB connection\n");
// iterate over all users
-$sql_result = $db->query("SELECT user_id FROM " . $RCMAIL->config->get('db_table_users', 'users')." WHERE 1");
+$sql_result = $db->query("SELECT user_id FROM " . $RCMAIL->config->get('db_table_users', 'users')." WHERE 1=1");
while ($sql_result && ($sql_arr = $db->fetch_assoc($sql_result))) {
echo "Indexing contacts for user " . $sql_arr['user_id'] . "...";