diff --git a/category.php b/category.php index d3afcf4db..d8cccb1e4 100644 --- a/category.php +++ b/category.php @@ -141,8 +141,8 @@
diff --git a/includes/classes/Event.php b/includes/classes/Event.php index e24ebe64d..e979471a3 100644 --- a/includes/classes/Event.php +++ b/includes/classes/Event.php @@ -113,7 +113,7 @@ class Event { /** * The event's dueDate. */ - private string $_dueDate; + private ?string $_dueDate; /** * The event's dueTime. */ diff --git a/includes/dbi4php.php b/includes/dbi4php.php index 553d9b9cf..f98f2e0a7 100644 --- a/includes/dbi4php.php +++ b/includes/dbi4php.php @@ -337,6 +337,7 @@ function dbi_query( $sql, $fatalOnError = true, $showError = true ) { } elseif( strcmp( $GLOBALS['db_type'], 'mysqli' ) == 0 ) { $found_db_type = true; try { + $GLOBALS['db_connection']->select_db($db_connection_info['database']); $res = $GLOBALS['db_connection']->query( $sql ); } catch (Exception $e) { $res = false;