]> git.mxchange.org Git - friendica.git/blobdiff - include/socgraph.php
Merge pull request #3252 from annando/1703-worker-splitting
[friendica.git] / include / socgraph.php
index f43ad62d088c71a829bb0342ed18775145333cc7..71771bb95d909eb8c9ded6b89c2c5de5b26c5608 100644 (file)
@@ -34,7 +34,7 @@ require_once("include/Photo.php");
  */
 function poco_load($cid, $uid = 0, $zcid = 0, $url = null) {
        // Call the function "poco_load_worker" via the worker
-       proc_run(PRIORITY_LOW, "include/discover_poco.php", "poco_load", $cid, $uid, $zcid, base64_encode($url));
+       proc_run(PRIORITY_LOW, "include/discover_poco.php", "poco_load", intval($cid), intval($uid), intval($zcid), base64_encode($url));
 }
 
 /**
@@ -1769,7 +1769,7 @@ function poco_discover($complete = false) {
                        }
 
                        logger('Update directory from server '.$server['url'].' with ID '.$server['id'], LOGGER_DEBUG);
-                       proc_run(PRIORITY_LOW, "include/discover_poco.php", "update_server_directory", $server['id']);
+                       proc_run(PRIORITY_LOW, "include/discover_poco.php", "update_server_directory", intval($server['id']));
 
                        if (!$complete AND (--$no_of_queries == 0)) {
                                break;