From 209e884ab7c3601e77610789e6c720b99698a1a8 Mon Sep 17 00:00:00 2001 From: Moc Date: Fri, 29 Mar 2013 00:03:36 +0100 Subject: [PATCH] Fixes #151 - two more typo's causing errors (forum and list_new) --- e107_plugins/forum/forum_class.php | 4 ++-- e107_plugins/list_new/list_class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index 638bebf10..7f2de101d 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -770,7 +770,7 @@ class e107forum function postDeleteAttachments($type = 'post', $id='', $f='') { $e107 = e107::getInstance(); - $sql = $e107::getDb(); + $sql = e107::getDb(); $id = (int)$id; if(!$id) { return; } @@ -1065,7 +1065,7 @@ class e107forum function forum_getforums($type = 'all') { - $e107::getDb(); + $sql = e107::getDb(); $qry = " SELECT f.*, u.user_name FROM #forum AS f LEFT JOIN #user AS u ON SUBSTRING_INDEX(f.forum_lastpost_user,'.',1) = u.user_id diff --git a/e107_plugins/list_new/list_class.php b/e107_plugins/list_new/list_class.php index 5a6484592..2419719f9 100644 --- a/e107_plugins/list_new/list_class.php +++ b/e107_plugins/list_new/list_class.php @@ -203,7 +203,7 @@ class listclass */ function getContentSections($mode='') { - $sql = $e107::getDb(); + $sql = e107::getDb(); global $pref; if (!$content_install = isset($pref['plug_installed']['content']))