~umgeher/lighthouse-php-analog

53afd53b77bf911d926e5b895484a3fed3479aee — lux 2 years ago d9b5db5
Fixed missing slashes on PDO constants, fixes #46
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/Analog/Handler/PDO.php
M lib/Analog/Handler/PDO.php => lib/Analog/Handler/PDO.php +1 -1
@@ 49,7 49,7 @@ namespace Analog\Handler;
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 (