[Regression] Bugfix #2327795: broken rendering result introduced by display_empty
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2820279. -->
Reported by: [hswong3i](https://www.drupal.org/user/33940)
>>>
<p>Due to changes from <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/menu_block/-/work_items/2327795" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/menu_block/-/work_items/2327795</a></span>, the variable <code>$output</code> now assigned as boolean check result against <code>menu_block_tree_output($tree, $config) || !empty($config['display_empty'])</code>, which will always result as 1/0, therefore rendering result simply become 1/0, too.</p>
<p>This patch fix the broken logic by moving the assign value of <code>$output</code> after the logical checking, and so revoke the original rendering result.</p>
> Related issue: [Issue #2327795](https://www.drupal.org/node/2327795)
issue