From dc8806daa4e072c394a4ee3c651b7e827f107d2e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 30 Dec 2010 16:38:05 -0500 Subject: [PATCH] fix style migration. --- ansel/migration/3_ansel_upgrade_style.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansel/migration/3_ansel_upgrade_style.php b/ansel/migration/3_ansel_upgrade_style.php index b714b327c..1f425dddf 100644 --- a/ansel/migration/3_ansel_upgrade_style.php +++ b/ansel/migration/3_ansel_upgrade_style.php @@ -47,7 +47,7 @@ class AnselUpgradeStyle extends Horde_Db_Migration_Base 'OwnerFaces' => array())); $rows = $this->_connection->selectAll($sql); - $update = 'UPDATE ansel_shares SET attribute_style=? WHERE share_id=?;'; + $update = 'UPDATE ansel_shares SET attribute_style = ? WHERE share_id = ?;'; foreach ($rows as $row) { // Make sure we haven't already migrated if (@unserialize($row['attribute_style']) instanceof Ansel_Style) { @@ -66,7 +66,7 @@ class AnselUpgradeStyle extends Horde_Db_Migration_Base $this->announce('Migrating share id: ' . $row['share_id'] . ' from: ' . $row['attribute_style'] . ' to: ' . $newStyle, 'cli.message'); try { - $this->_connection->execute($update, array($newStyle, $row['attribute_style'])); + $this->_connection->execute($update, array($newStyle, $row['share_id'])); } catch (Horde_Db_Exception $e) { $this->announce('ERROR: ' . $e->getMessage()); } -- 2.11.0