Skip to content

Commit

Permalink
HOTFIX: Bookmarks would not appear if Struct was installed
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisOuellet committed Nov 14, 2024
1 parent ace9b83 commit 4cc5425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpl_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ function tpl_getUserMenu()
$return .= '</a>';
$return .= '<ul class="dropdown-menu" role="menu">';
$instructions = p_get_instructions('{{starred>min}}');
if(count($instructions) <= 3) {
$render = p_render('xhtml',$instructions,$info);
if(count($instructions) > 0) {
$render = p_render('xhtml',$instructions, $info);
// Sanitize the output
$render = preg_replace('/<div class="plugin_starred">/', '', $render);
$render = preg_replace('/<\/div>/', '', $render);
Expand Down

0 comments on commit 4cc5425

Please sign in to comment.