From: Ben Klang Date: Wed, 13 Jan 2010 22:18:14 +0000 (-0500) Subject: Shout: Column name change X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=93a99bf590c7d89e52fe8aea15accc97f9d8ffd2;p=horde.git Shout: Column name change --- 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);