1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Fixes #1373 - Broken SQL loop, due to emoticon pref lookup.

This commit is contained in:
Cameron
2016-03-12 10:04:23 -08:00
parent 09923ad54b
commit e7c088cf85

View File

@@ -475,9 +475,9 @@ class e_pref extends e_front_model
return $this; 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) if($this->serial_bc)
{ {