Fixed typo
authorMarcel Werk <burntime@woltlab.com>
Tue, 27 May 2014 19:09:36 +0000 (21:09 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 27 May 2014 19:09:36 +0000 (21:09 +0200)
wcfsetup/install/files/lib/system/user/activity/event/ProfileCommentUserActivityEvent.class.php

index 3361be38654e7ca9e5b7f91a7bc68c1776a752f3..01be02859a5118232855d56e73d7512343091730 100644 (file)
@@ -21,16 +21,16 @@ class ProfileCommentUserActivityEvent extends SingletonFactory implements IUserA
         * @see \wcf\system\user\activity\event\IUserActivityEvent::prepare()
         */
        public function prepare(array $events) {
-               $comments = $comentIDs = array();
+               $comments = $commentIDs = array();
                
                if (WCF::getSession()->getPermission('user.profile.canViewUserProfile')) {
                        foreach ($events as $event) {
-                               $comentIDs[] = $event->objectID;
+                               $commentIDs[] = $event->objectID;
                        }
                        
                        // fetch comments
                        $commentList = new CommentList();
-                       $commentList->getConditionBuilder()->add("comment.commentID IN (?)", array($comentIDs));
+                       $commentList->getConditionBuilder()->add("comment.commentID IN (?)", array($commentIDs));
                        $commentList->readObjects();
                        $comments = $commentList->getObjects();