Skip to content

Commit

Permalink
Merge pull request #731 from greezybacon/issue/thread-owner-email
Browse files Browse the repository at this point in the history
Fix email address comparison issue

Reviewed-By: Peter Rotich <peter@osticket.com>
  • Loading branch information
protich committed Sep 20, 2013
2 parents cb8ee05 + 9f4e453 commit 5ea0a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/class.thread.php
Expand Up @@ -533,7 +533,7 @@ function postEmail($mailinfo) {
// Disambiguate if the user happens also to be a staff member of the
// system. The current ticket owner should _always_ post messages
// instead of notes or responses
if ($mailinfo['email'] == $ticket->getEmail()) {
if (strcasecmp($mailinfo['email'], $ticket->getEmail()) == 0) {
$vars['message'] = $body;
return $ticket->postMessage($vars, 'Email');
}
Expand Down

0 comments on commit 5ea0a9d

Please sign in to comment.