1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Fixes #151 - two more typo's causing errors (forum and list_new)

This commit is contained in:
Moc
2013-03-29 00:03:36 +01:00
parent f1c41828f1
commit 209e884ab7
2 changed files with 3 additions and 3 deletions

View File

@@ -770,7 +770,7 @@ class e107forum
function postDeleteAttachments($type = 'post', $id='', $f='') function postDeleteAttachments($type = 'post', $id='', $f='')
{ {
$e107 = e107::getInstance(); $e107 = e107::getInstance();
$sql = $e107::getDb(); $sql = e107::getDb();
$id = (int)$id; $id = (int)$id;
if(!$id) { return; } if(!$id) { return; }
@@ -1065,7 +1065,7 @@ class e107forum
function forum_getforums($type = 'all') function forum_getforums($type = 'all')
{ {
$e107::getDb(); $sql = e107::getDb();
$qry = " $qry = "
SELECT f.*, u.user_name FROM #forum AS f 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 LEFT JOIN #user AS u ON SUBSTRING_INDEX(f.forum_lastpost_user,'.',1) = u.user_id

View File

@@ -203,7 +203,7 @@ class listclass
*/ */
function getContentSections($mode='') function getContentSections($mode='')
{ {
$sql = $e107::getDb(); $sql = e107::getDb();
global $pref; global $pref;
if (!$content_install = isset($pref['plug_installed']['content'])) if (!$content_install = isset($pref['plug_installed']['content']))