From: Michael M Slusarz Date: Fri, 2 Apr 2010 04:10:37 +0000 (-0600) Subject: Make sure 'sortdate' has a default value X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=76f3ad8dc817f6c0f9368d3f671a445e7a9202a1;p=horde.git Make sure 'sortdate' has a default value --- 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;