Skip to content
Browse files

Cleaning.

  • Loading branch information...
1 parent e3e1e9a commit 927f93447b1a855726d7a2652f2931f366dd52ea @mageekguy committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/scripts/runner.php
View
2 classes/scripts/runner.php
@@ -279,7 +279,7 @@ public static function autorunIsEnabled()
public static function enableAutorun($name)
{
- if (static::$autorunner !== null)
+ if (static::autorunIsEnabled() === true)
{
throw new exceptions\runtime('Unable to autorun \'' . $name . '\' because \'' . static::$autorunner->getName() . '\' is already set as autorunner');
}

0 comments on commit 927f934

Please sign in to comment.
Something went wrong with that request. Please try again.