r25862 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25861‎ | r25862 | r25863 >
Date:20:06, 14 September 2007
Author:david
Status:old
Tags:
Comment:
Fixed amazingly stupid trivial bug.
Modified paths:
  • /branches/liquidthreads/extensions/LqtModel.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtModel.php
@@ -1008,7 +1008,7 @@
10091009
10101010 if ( $timestamp === null ) $timestamp = "NULL";
10111011
1012 - // use query() directly to pass is 'true' for don't-die on errors.
 1012+ // use query() directly to pass in 'true' for don't-die-on-errors.
10131013 $dbr =& wfGetDB( DB_MASTER );
10141014 $success = $dbr->query("insert into user_message_state values ($user_id, $thread_id, $timestamp)",
10151015 __METHOD__, true);
@@ -1025,7 +1025,7 @@
10261026
10271027 $ts = Threads::where( array('ums_read_timestamp is null',
10281028 Threads::articleClause(new Article($user->getUserPage()))),
1029 - array(), array(), 'left outer join user_message_state on ums_user is null or (ums_user = 2 and ums_thread = thread.thread_id)' );
 1029+ array(), array(), "left outer join user_message_state on ums_user is null or (ums_user = {$user->getID()} and ums_thread = thread.thread_id)" );
10301030 return $ts;
10311031 }
10321032

Status & tagging log