diff --git a/lib/Conversation.class.php b/lib/Conversation.class.php index 6217e90..33d1495 100644 --- a/lib/Conversation.class.php +++ b/lib/Conversation.class.php @@ -4,7 +4,7 @@ require_once('Message.class.php'); function compareMsgDate ($msg1, $msg2) { - return ($msg1->getDate() < $msg2->getDate()) ? false : true; + return ($msg1->getDate() < $msg2->getDate()) ? -1 : 1; } class Conversation {