Use intval, not boolean val.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 10 Jun 2009 04:42:20 +0000 (22:42 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 10 Jun 2009 04:42:20 +0000 (22:42 -0600)
imp/ajax.php

index 4263733..a9b900a 100644 (file)
@@ -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. */