]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Worker.php
Don't show the connect link in the profile on the "follow" page
[friendica.git] / src / Core / Worker.php
index 2417af55444401c930a1106bcccea1655d538cc3..760b40b1d30eb19adb742d85b8077fe385d5e730 100644 (file)
@@ -13,6 +13,8 @@ use Friendica\Util\Lock;
 
 use dba;
 
+require_once 'include/dba.php';
+
 /**
  * @file src/Core/Worker.php
  *
@@ -533,7 +535,11 @@ class Worker
 
                while ($entry = dba::fetch($entries)) {
                        if (!posix_kill($entry["pid"], 0)) {
-                               dba::update('workerqueue', array('executed' => NULL_DATE, 'pid' => 0), array('id' => $entry["id"]));
+                               dba::update(
+                                       'workerqueue',
+                                       array('executed' => NULL_DATE, 'pid' => 0),
+                                       array('id' => $entry["id"])
+                               );
                        } else {
                                // Kill long running processes
                                // Check if the priority is in a valid range
@@ -969,7 +975,11 @@ class Worker
                self::killStaleWorkers();
        }
 
-       public static function spawnWorker() {
+       /**
+        * @return void
+        */
+       public static function spawnWorker()
+       {
                $args = array("scripts/worker.php", "no_cron");
                get_app()->proc_run($args);
        }