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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user