summaryrefslogtreecommitdiffstats
path: root/lib/private/backgroundjob/legacy/regularjob.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/backgroundjob/legacy/regularjob.php')
-rw-r--r--lib/private/backgroundjob/legacy/regularjob.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/backgroundjob/legacy/regularjob.php b/lib/private/backgroundjob/legacy/regularjob.php
index d4cfa348cea..eb85a30b4be 100644
--- a/lib/private/backgroundjob/legacy/regularjob.php
+++ b/lib/private/backgroundjob/legacy/regularjob.php
@@ -10,6 +10,8 @@ namespace OC\BackgroundJob\Legacy;
class RegularJob extends \OC\BackgroundJob\Job {
public function run($argument) {
- call_user_func($argument);
+ if (is_callable($argument)) {
+ call_user_func($argument);
+ }
}
}