Skip to content

Commit d94dea0

Browse files
authored
Update DBPDO.php
Removed debug 'dies'
1 parent 7356e61 commit d94dea0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

DBPDO.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ function __construct($dbhost = '', $dbname = '', $dbuser = '', $dbpass = '', $or
3636
}
3737

3838
// Disallow cloning and unserializing
39-
private function __clone() {}
40-
private function __wakeup() {}
39+
private function __clone() {}
40+
private function __wakeup() {}
4141

4242

4343
function prep_query($query)
@@ -66,7 +66,6 @@ function connect()
6666
return true;
6767
} catch (PDOException $e) {
6868
$this->error = $e->getMessage();
69-
// die($this->error);
7069
return false;
7170
}
7271
} else {
@@ -101,7 +100,6 @@ function execute($query, $values = null, $debug = false)
101100
$stmt->execute($values);
102101
} catch (PDOException $e) {
103102
$this->error = $e->getMessage();
104-
die($query . "<br />\n" . $this->error);
105103
return false;
106104
}
107105
return $stmt;

0 commit comments

Comments
 (0)