From ede9a6815af1d3dc473d6f633534b468b9030386 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Thu, 21 Oct 2021 20:36:51 +0200 Subject: [PATCH] [ticket/16897] Ignores sqlite3 warnings when an explain query plan query fails PHPBB3-16897 --- phpBB/phpbb/db/driver/sqlite3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/db/driver/sqlite3.php b/phpBB/phpbb/db/driver/sqlite3.php index 106400bf0a..61b87d86b5 100644 --- a/phpBB/phpbb/db/driver/sqlite3.php +++ b/phpBB/phpbb/db/driver/sqlite3.php @@ -390,7 +390,7 @@ class sqlite3 extends \phpbb\db\driver\driver { $html_table = false; - if ($result = $this->dbo->query("EXPLAIN QUERY PLAN $explain_query")) + if ($result = @$this->dbo->query("EXPLAIN QUERY PLAN $explain_query")) { while ($row = $result->fetchArray(SQLITE3_ASSOC)) {