From 75cc4c657e284bbe8db4952b38a69eede729c9dd Mon Sep 17 00:00:00 2001 From: Leander Date: Mon, 3 Apr 2017 11:03:33 +0200 Subject: [PATCH] T201704031103 --- Database.php | 4 ++-- start.php | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Database.php b/Database.php index 02c3ba3..99fe210 100644 --- a/Database.php +++ b/Database.php @@ -22,9 +22,9 @@ class Database $result = null; $error = 0; if(isset($params)) { - $result = pg_query_params($this->db, $sql, $params); + $result = @pg_query_params($this->db, $sql, $params); } else { - $result = pg_query($this->db, $sql); + $result = @pg_query($this->db, $sql); } if(!isset($result)) { $error = 10101; diff --git a/start.php b/start.php index 6710032..ee5bbb7 100644 --- a/start.php +++ b/start.php @@ -23,8 +23,6 @@ return array_slice($numbers, 0, $count-1); } - print_r($questions_count); - if($uid == '') { $error = 12103; } else if($length == 0) {