Priority needs to be integer

This commit is contained in:
Michael 2017-05-24 10:36:44 +00:00
parent d2dd0b3248
commit 3d14fa3d81
1 changed files with 1 additions and 1 deletions

View 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.