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; ?>