Ignore:
Timestamp:
Sep 4, 2020, 9:30:13 AM (4 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

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

    r874 r880  
    363363        'Version' => $Module->Version, 'Installed' => $Module->Installed);
    364364    }
    365     file_put_contents($this->FileName, "<?php \n\n\$ConfigModules = ".var_export($Data, true).";\n");
     365    if (file_put_contents($this->FileName, "<?php \n\n\$ConfigModules = ".var_export($Data, true).";\n") === FALSE)
     366    {
     367      echo($this->FileName.' is not writeable.');
     368    }
    366369  }
    367370
     
    394397  function LoadModules()
    395398  {
    396     if (method_exists($this->OnLoadModules[0], $this->OnLoadModules[1]))
     399    if (is_array($this->OnLoadModules) and (count($this->OnLoadModules) == 2) and method_exists($this->OnLoadModules[0], $this->OnLoadModules[1]))
    397400      $this->OnLoadModules();
    398401    else $this->LoadModulesFromDir($this->ModulesDir);
Note: See TracChangeset for help on using the changeset viewer.