]> 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 7dcdf4e8868bd7e9351e1a8e0e32a96b0f78be13..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