Skip to content

Commit

Permalink
Fixed bug where errorInfo() is called on when it failed in src/data.php
Browse files Browse the repository at this point in the history
  • Loading branch information
shupp committed Apr 6, 2014
1 parent b215718 commit 44589ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data.php
Expand Up @@ -28,7 +28,7 @@

// build data
$q = "select a.domain, b.host, b.type, b.val, b.distance, b.weight, b.port, b.ttl from domains a left join records b on a.domain_id = b.domain_id where a.status='active' order by a.domain, b.type, b.host, b.val";
$stmt = $pdo->query($q) or die(print_r($stmt->errorInfo()));
$stmt = $pdo->query($q) or die(print_r($pdo->errorInfo()));
$out = "";

$lastdomain = "";
Expand Down

0 comments on commit 44589ed

Please sign in to comment.