r102492 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102491‎ | r102492 | r102493 >
Date:04:52, 9 November 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fix check where value can apparently be null
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
@@ -1948,7 +1948,7 @@
19491949
19501950 $db = wfGetDB( DB_SLAVE );
19511951
1952 - if ( $iw !== '' ) { // external page; no need to think about redirects
 1952+ if ( $iw !== '' && !is_null( $iw ) ) { // external page; no need to think about redirects
19531953 $iwCond = 'smw_iw=' . $db->addQuotes( $iw );
19541954 } else {
19551955 $iwCond = '(smw_iw=' . $db->addQuotes( '' ) .