Database: use instanceof operator instead of is_a

This commit is contained in:
Aaron committed 2026-11-21 18:37:01 +01:00
1 parent fa641c6343
commit 4e771ac23d
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ class Database
} }
// Prepare date/time values // Prepare date/time values
if (is_a($value, 'DateTime')) if ($value instanceof DateTime)
{ {
$value = $value->format('Y-m-d H:i:s'); $value = $value->format('Y-m-d H:i:s');
} }