From 63fd9622c06e97e67e6dd11db00b12157924e6b8 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 22 Dec 2009 16:50:15 -0800 Subject: Don't use as_array() on the result from db::build()->execute() -- it's no longer necessary. --- modules/gallery/libraries/Gallery_I18n.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules') 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); } } -- cgit v1.2.3