From e15cbedc8e47446a0bf03b796261fdcbe80d8055 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Fri, 20 Jul 2018 16:05:18 -0700 Subject: [PATCH] Only use PostgreSQL queries when using PDO --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 4d6d18f..c593835 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -3,7 +3,7 @@ if (!defined('TINYIB_BOARD')) { die(''); } -if (TINYIB_DBDRIVER === 'pgsql') { +if (TINYIB_DBMODE == 'pdo' && TINYIB_DBDRIVER == 'pgsql') { $posts_sql = 'CREATE TABLE "' . TINYIB_DBPOSTS . '" ( "id" bigserial NOT NULL, "parent" integer NOT NULL,