From: Michael J. Rubinsky Date: Thu, 30 Dec 2010 21:38:05 +0000 (-0500) Subject: fix style migration. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dc8806daa4e072c394a4ee3c651b7e827f107d2e;p=horde.git fix style migration. --- 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()); }