summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-22 16:50:15 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-22 16:50:15 -0800
commit63fd9622c06e97e67e6dd11db00b12157924e6b8 (patch)
tree2f008989f985f417a67df11e721af8b9c88411c3
parent0bc92614d37e08ab5f85c83cf4317132d4c6b99c (diff)
Don't use as_array() on the result from db::build()->execute() -- it's no longer necessary.
-rw-r--r--modules/gallery/libraries/Gallery_I18n.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/gallery/libraries/Gallery_I18n.php b/modules/gallery/libraries/Gallery_I18n.php
index 9a5e7dc1..4e0c1f82 100644
--- a/modules/gallery/libraries/Gallery_I18n.php
+++ b/modules/gallery/libraries/Gallery_I18n.php
@@ -132,8 +132,7 @@ class Gallery_I18n_Core {
->select("key", "translation")
->from("incoming_translations")
->where("locale", "=", $locale)
- ->execute()
- ->as_array() as $row) {
+ ->execute() as $row) {
$this->_cache[$locale][$row->key] = unserialize($row->translation);
}
@@ -142,8 +141,7 @@ class Gallery_I18n_Core {
->select("key", "translation")
->from("outgoing_translations")
->where("locale", "=", $locale)
- ->execute()
- ->as_array() as $row) {
+ ->execute() as $row) {
$this->_cache[$locale][$row->key] = unserialize($row->translation);
}
}