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:
parent
b58730c5ac
commit
34acbcdc38
@ -4888,7 +4888,7 @@ class Results
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($dispresult && $dbi->numRows($dispresult) > 0) {
|
if ($dispresult && $dbi->numRows($dispresult) > 0) {
|
||||||
[$dispval] = $dbi->fetchRow($dispresult, 0);
|
[$dispval] = $dbi->fetchRow($dispresult);
|
||||||
} else {
|
} else {
|
||||||
$dispval = __('Link not found!');
|
$dispval = __('Link not found!');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1674,7 +1674,7 @@ class Util
|
|||||||
$wktresult = $dbi->tryQuery(
|
$wktresult = $dbi->tryQuery(
|
||||||
$wktsql
|
$wktsql
|
||||||
);
|
);
|
||||||
$wktarr = $dbi->fetchRow($wktresult, 0);
|
$wktarr = $dbi->fetchRow($wktresult);
|
||||||
$wktval = $wktarr[0] ?? null;
|
$wktval = $wktarr[0] ?? null;
|
||||||
|
|
||||||
if ($includeSRID) {
|
if ($includeSRID) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user