Мелкие ошибки из анализатора.

This commit is contained in:
Igor Barkov (iwork)
2021-02-01 16:39:48 +02:00
parent 95ade992e0
commit 538047f36f
13 changed files with 148 additions and 168 deletions
+1 -3
View File
@@ -12,7 +12,6 @@ class DBPDO
{
public $pdo;
private $error;
private static $_instance = null;
function __construct()
@@ -46,8 +45,7 @@ class DBPDO
$this->pdo = new PDO($dsn, $user, $password, array(PDO::ATTR_PERSISTENT => true));
return true;
} catch (PDOException $e) {
$this->error = $e->getMessage();
die($this->error);
die($e->getMessage());
}
} else {
$this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);