Skip to content

Commit

Permalink
Fixed Or or ||
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed May 10, 2020
1 parent 763f803 commit 7561cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Sendfriend/Model/Sendfriend.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function validate()
}

$email = $this->getSender()->getEmail();
if (empty($email) or !Zend_Validate::is($email, 'EmailAddress')) {
if (empty($email) || !Zend_Validate::is($email, 'EmailAddress')) {
$errors[] = Mage::helper('sendfriend')->__('Invalid sender email.');
}

Expand Down

0 comments on commit 7561cc9

Please sign in to comment.