Fix calls to fetchRow using two parameters but function has only one parameter

None of our fetchRow methods have more than one parameter

Thank you Psalm for catching this !

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-07-16 02:26:11 +02:00
parent b58730c5ac
commit 34acbcdc38
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 2 additions and 2 deletions

View File

@ -4888,7 +4888,7 @@ class Results
);
if ($dispresult && $dbi->numRows($dispresult) > 0) {
[$dispval] = $dbi->fetchRow($dispresult, 0);
[$dispval] = $dbi->fetchRow($dispresult);
} else {
$dispval = __('Link not found!');
}

View File

@ -1674,7 +1674,7 @@ class Util
$wktresult = $dbi->tryQuery(
$wktsql
);
$wktarr = $dbi->fetchRow($wktresult, 0);
$wktarr = $dbi->fetchRow($wktresult);
$wktval = $wktarr[0] ?? null;
if ($includeSRID) {