Skip to content
Permalink
Browse files

exit early if no toolbars exist (otherwise we'd get a warning further…

… below)
  • Loading branch information
flack committed Dec 9, 2019
1 parent 8bc3d2c commit 9a12dd8ff3e8bd413c6f68ac192d795df292db98
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/midcom/services/toolbars.php
@@ -339,10 +339,11 @@ private function add_head_elements(bool $centralized = false) : bool
*/
public function show()
{
if (!$this->add_head_elements(true)) {
$context_id = midcom_core_context::get()->id;

if (empty($this->_toolbars[$context_id]) || !$this->add_head_elements(true)) {
return;
}
$context_id = midcom_core_context::get()->id;

$enable_drag = false;
$toolbar_style = "";

0 comments on commit 9a12dd8

Please sign in to comment.
You can’t perform that action at this time.