[ticket/16897] Ignores sqlite3 warnings when an explain query plan query fails

PHPBB3-16897
This commit is contained in:
Tristan Darricau 2021-10-21 20:36:51 +02:00
parent dd029ed592
commit ede9a6815a

View file

@ -390,7 +390,7 @@ class sqlite3 extends \phpbb\db\driver\driver
{ {
$html_table = false; $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)) while ($row = $result->fetchArray(SQLITE3_ASSOC))
{ {