modifs.mineures sans commentaires
This commit is contained in:
parent
ee81057e44
commit
e4a58f0226
@ -476,6 +476,7 @@ class app2 {
|
|||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
|
const EC_DISABLED = 251;
|
||||||
const EC_LOCKED = 252;
|
const EC_LOCKED = 252;
|
||||||
const EC_BAD_COMMAND = 253;
|
const EC_BAD_COMMAND = 253;
|
||||||
const EC_EXCEPTION = 254;
|
const EC_EXCEPTION = 254;
|
||||||
@ -532,8 +533,7 @@ class app2 {
|
|||||||
if (self::$bgapplication_enabled === null) return;
|
if (self::$bgapplication_enabled === null) return;
|
||||||
$enabled = boolval(self::$bgapplication_enabled->invoke());
|
$enabled = boolval(self::$bgapplication_enabled->invoke());
|
||||||
if (!$forceEnabled && !$enabled) {
|
if (!$forceEnabled && !$enabled) {
|
||||||
msg::debug("Planifications désactivées. La tâche n'a pas été lancée");
|
throw new ExitError(self::EC_DISABLED, "Planifications désactivées. La tâche n'a pas été lancée");
|
||||||
throw new ExitError();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user