DB IO Bug Fix for parameter detect after <>, DateTime code fix

Query Parameters where not detected after a <> unequal check

DateTime fix for last element, use array_pop instead of $array[count - 1]
This commit is contained in:
Clemens Schwaighofer
2023-11-29 10:44:21 +09:00
parent 672931ee67
commit 4adb9fba30
3 changed files with 5 additions and 3 deletions

View File

@@ -385,7 +385,7 @@ class DateTime
} else {
$str = implode(', ', array_slice($formatted, 0, -1));
if (!empty($formatted[count($formatted) - 1])) {
$str .= ' and ' . $formatted[count($formatted) - 1];
$str .= ' and ' . (string)array_pop($formatted);
}
return $negative . $str;
}