]> git.mxchange.org Git - friendica.git/commitdiff
Priority needs to be integer
authorMichael <heluecht@pirati.ca>
Wed, 24 May 2017 10:36:44 +0000 (10:36 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 24 May 2017 10:36:44 +0000 (10:36 +0000)
include/notifier.php

index dd0a65089a12c61a09b1599b1023c15d66e797fa..f0396798f761a3aff88fad3711b7e66910ea19a2 100644 (file)
@@ -58,7 +58,7 @@ function notifier_run(&$argv, &$argc){
        // Inherit the priority
        $queue = dba::select('workerqueue', array('priority'), array('pid' => getmypid()), array('limit' => 1));
        if (dbm::is_result($queue)) {
-               $priority = $queue['priority'];
+               $priority = (int)$queue['priority'];
                logger('inherited priority: '.$priority);
        } else {
                // Normally this shouldn't happen.