Ensures we don't need to add unneeded quotes during JSON encode.
$result->poll = array();
foreach ($imptree->getPollList(true) as $val) {
if ($info = $imptree->getElementInfo($val)) {
- $result->poll[$val] = $info['unseen'];
+ $result->poll[$val] = intval($info['unseen']);
}
}
$ptr = each($indices);
$args = array(
'folder' => $ptr['key'],
- 'index' => reset($ptr['value']),
+ 'index' => intval(reset($ptr['value'])),
'preview' => true,
);
$ob->cl = 'exp';
} else {
if ($elt['polled']) {
- $ob->u = $elt['unseen'];
+ $ob->u = intval($elt['unseen']);
}
switch ($elt['special']) {
$msg = array(
'imapuid' => intval($ob['uid']),
'menutype' => 'message',
- 'rownum' => $ob['seq'],
+ 'rownum' => intval($ob['seq']),
'view' => $ob['mailbox'],
);