From: Aryeh Gregor Date: Thu, 1 May 2008 15:27:59 +0000 (+0000) Subject: (bug 13915) Undefined variable in includes/SpecialWatchlist.php. Patch by Jelte... X-Git-Tag: 1.31.0-rc.0~47974 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=6bc424de246b83ec438e25356e19e79304565822;p=lhc%2Fweb%2Fwiklou.git (bug 13915) Undefined variable in includes/SpecialWatchlist.php. Patch by Jelte (WebBoy). --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b101abf892..ec7ed2bfef 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -231,6 +231,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13885) Bump default $wgSVGMaxSize from 1024 to 2048 pixels * (bug 13891) Show categories box even if all categories are hidden and user has "show hidden categories" option on +* (bug 13915) Undefined variable $wltsfield in includes/SpecialWatchlist.php === API changes in 1.13 === diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 26fca85190..94832f8c95 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -184,7 +184,9 @@ function wfSpecialWatchlist( $par ) { "\n\n" ); } if ( $wgShowUpdatedMarker ) { - $wltsfield=", ${watchlist}.wl_notificationtimestamp "; + $wltsfield = ", ${watchlist}.wl_notificationtimestamp "; + } else { + $wltsfield = ''; } $sql = "SELECT ${recentchanges}.* ${wltsfield} FROM $watchlist,$recentchanges