]> git.mxchange.org Git - friendica.git/commitdiff
Spawn now spawns
authorMichael <heluecht@pirati.ca>
Thu, 14 Dec 2017 16:41:56 +0000 (16:41 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 14 Dec 2017 16:41:56 +0000 (16:41 +0000)
scripts/worker.php

index c216dbbcc83a1c178f3fcead6b852903f064a041..a3738038b1a93944fb83c7d5fb5bd4436d3471ad 100755 (executable)
@@ -44,7 +44,7 @@ $a->set_baseurl(Config::get('system', 'url'));
 
 load_hooks();
 
-$spawn = (($_SERVER["argc"] <= 1) || ($_SERVER["argv"][1] == "spawn"));
+$spawn = (($_SERVER["argc"] == 2) && ($_SERVER["argv"][1] == "spawn"));
 
 if ($spawn) {
        Worker::spawnWorker();