From 368d93b997292d7257626a397187009eb0b9a1fc Mon Sep 17 00:00:00 2001 From: Jakob Date: Wed, 19 Feb 2020 22:23:41 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ethreadr/boards/index.php=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- threadr/boards/index.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/threadr/boards/index.php b/threadr/boards/index.php index 9fd7824..9576867 100644 --- a/threadr/boards/index.php +++ b/threadr/boards/index.php @@ -6,11 +6,10 @@ prepare("SELECT name FROM boards"); $statement->execute(); @@ -21,11 +20,10 @@ } echo "" } - catch(PDOException $Exception) { + + if (!$result) { $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2]; } - - $pdo = null; ?>