Ignore:
Timestamp:
Dec 27, 2022, 2:34:03 PM (23 months ago)
Author:
chronos
Message:
  • Fixed: Run with PHP 8.1.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/AppModule.php

    r880 r887  
    392392  }
    393393
    394   function LoadModules()
    395   {
    396     if (method_exists($this->OnLoadModules[0], $this->OnLoadModules[1]))
    397       $this->OnLoadModules();
     394  function LoadModules(): void
     395  {
     396    if (is_array($this->OnLoadModules) and (count($this->OnLoadModules) == 2) and method_exists($this->OnLoadModules[0], $this->OnLoadModules[1]))
     397      call_user_func($this->OnLoadModules);
    398398    else $this->LoadModulesFromDir($this->ModulesDir);
    399399  }
Note: See TracChangeset for help on using the changeset viewer.