From eb06e60f13e358fc871dc38d31128e7a1ea4afd8 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sat, 4 Sep 2010 18:30:27 +0100 Subject: [PATCH] Fixed bug with error handling --- lib/RippingCluster/Database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RippingCluster/Database.class.php b/lib/RippingCluster/Database.class.php index abac4cd..9ff1b14 100644 --- a/lib/RippingCluster/Database.class.php +++ b/lib/RippingCluster/Database.class.php @@ -52,7 +52,7 @@ class RippingCluster_Database { $result = $stmt->execute(); if (!$result) { - list($code, $dummy, $message) = $stmt->errorInfo(); + list($dummy, $code, $message) = $stmt->errorInfo(); throw new RippingCluster_Exception_DatabaseQueryFailed($message, $code); }