Browse Source

bugfix php81

andre 1 year ago
parent
commit
9247cb6cea
2 changed files with 2 additions and 2 deletions
  1. 1 1
      core/UI/MainContainer.php
  2. 1 1
      core/UI/MainContainerAjax.php

+ 1 - 1
core/UI/MainContainer.php

@@ -30,7 +30,7 @@ class MainContainer extends Container
         $this->prepareElemnentsContainers();
     }
 
-    public function addElement($element, $containerName = null)
+    public function addElement($element = 0, $containerName = null)
     {
         if (is_string($element))
         {

+ 1 - 1
core/UI/MainContainerAjax.php

@@ -38,7 +38,7 @@ class MainContainerAjax extends MainContainer
         return $this;
     }
 
-    public function addElement($element)
+    public function addElement($element = null, $containerName = null)
     {
         if (is_string($element))
         {