From: Greg Sabino Mullane Date: Thu, 20 Mar 2008 16:49:12 +0000 (+0000) Subject: Don't quote the size, it's an int or a literal NULL. Per bug 13453. X-Git-Tag: 1.31.0-rc.0~48934 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=685591e0639d83c055ea17b7b44411b6f065e6f7;p=lhc%2Fweb%2Fwiklou.git Don't quote the size, it's an int or a literal NULL. Per bug 13453. --- diff --git a/maintenance/rebuildrecentchanges.inc b/maintenance/rebuildrecentchanges.inc index 7b6f34c3f5..5e171b2a26 100644 --- a/maintenance/rebuildrecentchanges.inc +++ b/maintenance/rebuildrecentchanges.inc @@ -103,7 +103,7 @@ function rebuildRecentChangesTablePass2() $size = $size ? $size : 'NULL'; $sql3 = "UPDATE $recentchanges SET rc_last_oldid=$lastOldId,rc_new=$new,rc_type=$new," . - "rc_old_len='$lastSize',rc_new_len='$size' " . + "rc_old_len='$lastSize',rc_new_len=$size " . "WHERE rc_cur_id={$lastCurId} AND rc_this_oldid={$obj->rc_this_oldid}"; $dbw->query( $sql3 );