Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php |
— | — | @@ -1948,7 +1948,7 @@ |
1949 | 1949 | |
1950 | 1950 | $db = wfGetDB( DB_SLAVE ); |
1951 | 1951 | |
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 |
1953 | 1953 | $iwCond = 'smw_iw=' . $db->addQuotes( $iw ); |
1954 | 1954 | } else { |
1955 | 1955 | $iwCond = '(smw_iw=' . $db->addQuotes( '' ) . |