From e7c088cf85428b7771f8844316e48cbdb2b735d4 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 12 Mar 2016 10:04:23 -0800 Subject: [PATCH] Fixes #1373 - Broken SQL loop, due to emoticon pref lookup. --- e107_handlers/pref_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_handlers/pref_class.php b/e107_handlers/pref_class.php index 2f4ad7e9a..cdb188fb4 100644 --- a/e107_handlers/pref_class.php +++ b/e107_handlers/pref_class.php @@ -475,9 +475,9 @@ class e_pref extends e_front_model return $this; } - if (e107::getDb()->db_Select('core', 'e107_value', "e107_name='{$id}'")) + if (e107::getDb('pref')->select('core', 'e107_value', "e107_name='{$id}'")) { - $row = e107::getDb()->db_Fetch(); + $row = e107::getDb()->fetch(); if($this->serial_bc) {