@ -62,7 +62,8 @@ final class Version20200821224243 extends AbstractMigrationChamilo
);
$newTypeQueries[] = sprintf(
'UPDATE message SET msg_type = %d WHERE msg_type = %d',
Message::MESSAGE_TYPE_INBOX, self::OLD_MESSAGE_STATUS_OUTBOX
Message::MESSAGE_TYPE_INBOX,
self::OLD_MESSAGE_STATUS_OUTBOX
@ -76,7 +76,7 @@ class SocialPostVoter extends Voter
return false;
}
if ($post->getType() === SocialPost::TYPE_PROMOTED_MESSAGE && !$currentUser->isAdmin()) {
if (SocialPost::TYPE_PROMOTED_MESSAGE === $post->getType() && !$currentUser->isAdmin()) {