Skip to content

Commit

Permalink
Update DBPDO.php
Browse files Browse the repository at this point in the history
Removed debug 'dies'
  • Loading branch information
a1phanumeric authored Jan 7, 2025
1 parent 7356e61 commit d94dea0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions DBPDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function __construct($dbhost = '', $dbname = '', $dbuser = '', $dbpass = '', $or
}

// Disallow cloning and unserializing
private function __clone() {}
private function __wakeup() {}
private function __clone() {}
private function __wakeup() {}


function prep_query($query)
Expand Down Expand Up @@ -66,7 +66,6 @@ function connect()
return true;
} catch (PDOException $e) {
$this->error = $e->getMessage();
// die($this->error);
return false;
}
} else {
Expand Down Expand Up @@ -101,7 +100,6 @@ function execute($query, $values = null, $debug = false)
$stmt->execute($values);
} catch (PDOException $e) {
$this->error = $e->getMessage();
die($query . "<br />\n" . $this->error);
return false;
}
return $stmt;
Expand Down

0 comments on commit d94dea0

Please sign in to comment.