mirror of
https://github.com/haiwen/ccnet-server.git
synced 2025-08-10 08:51:34 +00:00
Fix a bug in get_emailusers_in_list().
This commit is contained in:
parent
5dd6a4d2e3
commit
12ca01f0ff
@ -1941,8 +1941,6 @@ ccnet_user_manager_get_emailusers_in_list (CcnetUserManager *manager,
|
|||||||
args[i] = "";
|
args[i] = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
json_decref (j_array);
|
|
||||||
|
|
||||||
if (ccnet_db_statement_foreach_row (manager->priv->db, sql->str, get_emailusers_cb, &ret, 20,
|
if (ccnet_db_statement_foreach_row (manager->priv->db, sql->str, get_emailusers_cb, &ret, 20,
|
||||||
"string", args[0], "string", args[1], "string", args[2],
|
"string", args[0], "string", args[1], "string", args[2],
|
||||||
"string", args[3], "string", args[4], "string", args[5],
|
"string", args[3], "string", args[4], "string", args[5],
|
||||||
@ -1953,6 +1951,7 @@ ccnet_user_manager_get_emailusers_in_list (CcnetUserManager *manager,
|
|||||||
"string", args[18], "string", args[19]) < 0)
|
"string", args[18], "string", args[19]) < 0)
|
||||||
ccnet_warning("Failed to get users in list %s.\n", user_list);
|
ccnet_warning("Failed to get users in list %s.\n", user_list);
|
||||||
|
|
||||||
|
json_decref (j_array);
|
||||||
g_string_free (sql, TRUE);
|
g_string_free (sql, TRUE);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user