Permalink
Browse files

- Fix SQL query for postgres

  • Loading branch information...
1 parent c9f2c47 commit 9556e004db346ed5a05d4cf75c4608c72d118ea2 @alecpl alecpl committed Mar 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/indexcontacts.sh
View
@@ -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'] . "...";

0 comments on commit 9556e00

Please sign in to comment.