Commit c7b2c7a2 by Scott

Fix SQL query

parent d7903bea
...@@ -138,7 +138,7 @@ function qa_db_uservote_post_get($postid) ...@@ -138,7 +138,7 @@ function qa_db_uservote_post_get($postid)
function qa_db_uservoteflag_user_get($userid) function qa_db_uservoteflag_user_get($userid)
{ {
return qa_db_read_all_values(qa_db_query_sub( return qa_db_read_all_values(qa_db_query_sub(
'SELECT postid FROM ^uservotes WHERE userid=# AND (vote!=0) OR (flag!=0)', 'SELECT postid FROM ^uservotes WHERE userid=# AND (vote!=0 OR flag!=0)',
$userid $userid
)); ));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment