jenkins-bot has submitted this change and it was merged. Change subject: If the SPARQL response gives a empty value the $variable won't be set and will trigger a notice. This fix prevents the notice. ......................................................................
If the SPARQL response gives a empty value the $variable won't be set and will trigger a notice. This fix prevents the notice. Change-Id: Ief581d577024d6038cc83cbf31d8d03979812654 --- M LinkedWiki.php 1 file changed, 3 insertions(+), 1 deletion(-) Approvals: Karima Rafes: Checked; Looks good to me, approved jenkins-bot: Verified diff --git a/LinkedWiki.php b/LinkedWiki.php index 1564620..68cebd2 100644 --- a/LinkedWiki.php +++ b/LinkedWiki.php @@ -371,7 +371,9 @@ if($row[$variable." type"] == "uri" ){ $arrayParameters[] = $variable." = ". efSparqlParserFunction_uri2Link($row[$variable],true) ; }else { - $arrayParameters[] = $variable." = ". $row[$variable] ; + if (isset($variable)) { + $arrayParameters[] = $variable." = ". $row[$variable]; + } } } foreach ( $TableFormatTemplates as $TableFormatTemplate) { -- To view, visit https://gerrit.wikimedia.org/r/83612 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ief581d577024d6038cc83cbf31d8d03979812654 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LinkedWiki Gerrit-Branch: master Gerrit-Owner: Your1 <yo...@vandenbogert.eu> Gerrit-Reviewer: Karima Rafes <karima.ra...@gmail.com> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits