From 76f3ad8dc817f6c0f9368d3f671a445e7a9202a1 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 1 Apr 2010 22:10:37 -0600 Subject: [PATCH] Make sure 'sortdate' has a default value --- imp/lib/IMP.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index bae99c4c9..8f4aa098d 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -922,7 +922,8 @@ class IMP } if ($convert && ($ob['by'] == IMP::IMAP_SORT_DATE)) { - $ob['by'] = $GLOBALS['prefs']->getValue('sortdate'); + $ob['by'] = $GLOBALS['prefs']->getValue('sortdate') || + Horde_Imap_Client::SORT_ARRIVAL; } return $ob; -- 2.11.0