mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
Fix News was failing when trackback was enabled. Default news-list pref added.
This commit is contained in:
2
news.php
2
news.php
@@ -586,7 +586,7 @@ switch ($action)
|
||||
// Get number of news item to show
|
||||
if(isset($pref['trackbackEnabled']) && $pref['trackbackEnabled']) {
|
||||
$query = "
|
||||
SELECT SQL_CALC_FOUND_ROWS COUNT(tb.trackback_pid) AS tb_count, n.*, u.user_id, u.user_name, u.user_customtitle, nc.category_id
|
||||
SELECT SQL_CALC_FOUND_ROWS COUNT(tb.trackback_pid) AS tb_count, n.*, u.user_id, u.user_name, u.user_customtitle, nc.category_id,
|
||||
nc.category_name, nc.category_sef, nc.category_icon, nc.category_meta_keywords, nc.category_meta_description,
|
||||
COUNT(*) AS tbcount
|
||||
FROM #news AS n
|
||||
|
Reference in New Issue
Block a user