From 93a99bf590c7d89e52fe8aea15accc97f9d8ffd2 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Wed, 13 Jan 2010 17:18:14 -0500 Subject: [PATCH] Shout: Column name change --- shout/lib/Driver/Sql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shout/lib/Driver/Sql.php b/shout/lib/Driver/Sql.php index 7f191a5cd..b0c58f537 100644 --- a/shout/lib/Driver/Sql.php +++ b/shout/lib/Driver/Sql.php @@ -51,7 +51,7 @@ class Shout_Driver_Sql extends Shout_Driver { $this->_connect(); - $sql = 'SELECT context FROM %s'; + $sql = 'SELECT context_name FROM %s'; $sql = sprintf($sql, $this->_params['table']); $vars = array(); @@ -70,7 +70,7 @@ class Shout_Driver_Sql extends Shout_Driver $contexts = array(); while ($row && !($row instanceof PEAR_Error)) { /* Add this new foo to the $_foo list. */ - $contexts[] = $row['context']; + $contexts[] = $row['context_name']; /* Advance to the new row in the result set. */ $row = $result->fetchRow(DB_FETCHMODE_ASSOC); -- 2.11.0