Skip to content

Commit

Permalink
Module : Not run a module if it's already run
Browse files Browse the repository at this point in the history
  • Loading branch information
bulton-fr committed Jul 5, 2017
1 parent d95e44e commit a9fc809
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/class/Module.php
Expand Up @@ -274,6 +274,10 @@ protected function getRunnerFile()
*/
public function runModule()
{
if ($this->status->run === true) {
return;
}

$runnerFile = $this->getRunnerFile();
$initFunction = function() use ($runnerFile) {
if ($runnerFile === null) {
Expand Down

0 comments on commit a9fc809

Please sign in to comment.