N°2650 fix run_query error handling incompatible with PHP < 7.3.0

This commit is contained in:
Pierre Goiffon
2019-12-20 09:21:00 +01:00
parent 523dd97eca
commit 4766ca3fd0

View File

@@ -272,7 +272,7 @@ EOF
{
$sWrongWord = $e->GetWrongWord();
$aSuggestedWords = $e->GetSuggestions();
if (is_countable($aSuggestedWords) && count($aSuggestedWords) > 0)
if (is_array($aSuggestedWords) && count($aSuggestedWords) > 0)
{
$sSuggestedWord = OqlException::FindClosestString($sWrongWord, $aSuggestedWords);