From a341808536cf3a46d29835978d98757f83711212 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 9 Jun 2009 22:42:20 -0600 Subject: [PATCH] Use intval, not boolean val. --- imp/ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/ajax.php b/imp/ajax.php index 42637334f..a9b900a51 100644 --- a/imp/ajax.php +++ b/imp/ajax.php @@ -18,8 +18,8 @@ function _generateDeleteResult($mbox, $indices, $change, $nothread = false) $result = new stdClass; $result->folder = $mbox; $result->uids = $GLOBALS['imp_imap']->ob->utils->toSequenceString($indices, array('mailbox' => true)); - $result->remove = ($GLOBALS['prefs']->getValue('hide_deleted') || - $GLOBALS['prefs']->getValue('use_trash')); + $result->remove = intval($GLOBALS['prefs']->getValue('hide_deleted') || + $GLOBALS['prefs']->getValue('use_trash')); $result->cacheid = $imp_mailbox->getCacheID($mbox); /* Check if we need to update thread information. */ -- 2.11.0