Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

Commit

Permalink
Fixed bug if Q2A tables are not using standard prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
svivian committed Oct 26, 2011
1 parent 60a5124 commit 821edc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa-user-activity.php
Expand Up @@ -140,7 +140,7 @@ function process_request( $request )
// userid, question count and selected count
function _questions_stats( $handle )
{
$sql_count = 'SELECT u.userid, count(p.postid) AS qs, count(p.selchildid) AS selected FROM qa_posts p, qa_users u WHERE p.type="Q" AND u.userid=p.userid AND u.handle=$';
$sql_count = 'SELECT u.userid, count(p.postid) AS qs, count(p.selchildid) AS selected FROM ^posts p, ^users u WHERE p.type="Q" AND u.userid=p.userid AND u.handle=$';
$result = qa_db_query_sub( $sql_count, $handle );
$row = qa_db_read_one_assoc($result);

Expand Down

0 comments on commit 821edc1

Please sign in to comment.