Browse files

added binary filter

  • Loading branch information...
1 parent faa7f18 commit 18f16d77bb5c0775835fb80245f7e2ab130b8834 @NoahY committed Dec 8, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 qa-history-layer.php
View
8 qa-history-layer.php
@@ -142,7 +142,7 @@ function user_activity_form() {
else $last_visit = time();
$events = qa_db_query_sub(
- 'SELECT event, params, UNIX_TIMESTAMP(datetime) AS datetime FROM ^eventlog WHERE userid = # AND DATE_SUB(CURDATE(),INTERVAL # DAY) <= datetime ORDER BY datetime DESC'.(qa_opt('user_act_list_max')?' LIMIT '.(int)qa_opt('user_act_list_max'):''),
+ 'SELECT event, BINARY params as params, UNIX_TIMESTAMP(datetime) AS datetime FROM ^eventlog WHERE userid = # AND DATE_SUB(CURDATE(),INTERVAL # DAY) <= datetime ORDER BY datetime DESC'.(qa_opt('user_act_list_max')?' LIMIT '.(int)qa_opt('user_act_list_max'):''),
$userid, qa_opt('user_act_list_age')
);
@@ -244,7 +244,7 @@ function user_activity_form() {
if(isset($params['postid'])) {
$post = qa_db_read_one_assoc(
qa_db_query_sub(
- 'SELECT type,parentid,title FROM ^posts WHERE postid=#',
+ 'SELECT type,parentid,BINARY title as title FROM ^posts WHERE postid=#',
$params['postid']
),
true
@@ -254,15 +254,15 @@ function user_activity_form() {
$anchor = qa_anchor((strpos($post['type'],'A') === 0 ?'A':'C'), $params['postid']);
$parent = qa_db_read_one_assoc(
qa_db_query_sub(
- 'SELECT parentid,type,title,postid FROM ^posts WHERE postid=#',
+ 'SELECT parentid,type,BINARY title as title,postid FROM ^posts WHERE postid=#',
$post['parentid']
),
true
);
if($parent['type'] == 'A') {
$parent = qa_db_read_one_assoc(
qa_db_query_sub(
- 'SELECT title,postid FROM ^posts WHERE postid=#',
+ 'SELECT BINARY title as title,postid FROM ^posts WHERE postid=#',
$parent['parentid']
),
true

0 comments on commit 18f16d7

Please sign in to comment.