Priority needs to be integer
This commit is contained in:
parent
d2dd0b3248
commit
3d14fa3d81
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue