Skip to content

Commit 67dddc9

Browse files
committed
Fixed missing functions if no tags are available, closes thorsten#1294
1 parent e5dd003 commit 67dddc9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

phpmyfaq/index.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,7 @@
401401
//
402402
// Set right column
403403
//
404-
// Check in any tags with at least one entry exist
405-
//
406-
$hasTags = $oTag->existTagRelations();
407-
if ($hasTags && (($action == 'artikel') || ($action == 'show'))) {
404+
if (($action == 'artikel') || ($action == 'show')) {
408405
$rightSidebarTemplate = $action == 'artikel' ? 'catandtag.tpl' : 'tagcloud.tpl';
409406
} else {
410407
$rightSidebarTemplate = 'startpage.tpl';
@@ -701,7 +698,7 @@
701698
);
702699
}
703700

704-
if ($hasTags && ('artikel' == $action || 'show' == $action || is_numeric($solutionId))) {
701+
if ('artikel' == $action || 'show' == $action || is_numeric($solutionId)) {
705702

706703
// We need some Links from social networks
707704
$faqServices = new PMF_Services($faqConfig);

0 commit comments

Comments
 (0)