Skip to content

Commit

Permalink
Fixed missing slashes on PDO constants, fixes #46
Browse files Browse the repository at this point in the history
  • Loading branch information
lux committed Nov 5, 2021
1 parent d9b5db5 commit 53afd53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Analog/Handler/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
class PDO {
public static function init ($pdo, $table) {
if (is_array ($pdo)) {
$pdo = new \PDO ($pdo[0], $pdo[1], $pdo[2], [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
$pdo = new \PDO ($pdo[0], $pdo[1], $pdo[2], [\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION]);
}

$stmt = $pdo->prepare (
Expand Down

0 comments on commit 53afd53

Please sign in to comment.