Uses constant instead of fixed value
authorMatthias Schmidt <gravatronics@live.com>
Wed, 9 Jan 2013 16:39:07 +0000 (17:39 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 9 Jan 2013 16:39:07 +0000 (17:39 +0100)
files/lib/data/conversation/ConversationAction.class.php

index 030630871771701b44b50b62732cdbec55a8fa83..8cf8901dae749b08ca2c941db234968a51107f35 100644 (file)
@@ -436,7 +436,7 @@ class ConversationAction extends AbstractDatabaseObjectAction implements IClipbo
                
                // reset user's conversation counters if user leaves conversation
                // permanently
-               if ($this->parameters['hideConversation'] == 2) {
+               if ($this->parameters['hideConversation'] == Conversation::STATE_LEFT) {
                        UserStorageHandler::getInstance()->reset(array(WCF::getUser()->userID), 'conversationCount');
                        UserStorageHandler::getInstance()->reset(array(WCF::getUser()->userID), 'unreadConversationCount');
                }