]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
fix error output
[nominatim.git] / website / reverse.php
index f6925846a172c75012f80b90316147b7034e1bb5..b4ab97b6cd4eac9c2f929d8be922ce2f0009075d 100755 (executable)
                        $aPlace = $oDB->getRow($sSQL);
                        if (PEAR::IsError($aPlace))
                        {
-                               failInternalError("Could not determine closest place.", $sSQL, $iPlaceID);
+                               failInternalError("Could not determine closest place.", $sSQL, $aPlace);
                        }
                        $iPlaceID = $aPlace['place_id'];
                        $iParentPlaceID = $aPlace['parent_place_id'];