Skip to content

Commit

Permalink
Make sure the environment variable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
James Hall committed Aug 25, 2012
1 parent 6c4ba23 commit a3b5065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
Expand Up @@ -1119,8 +1119,8 @@ public function testSendRenderWithImage() {
$this->CakeEmail->template('image');
$this->CakeEmail->emailFormat('html');
$server = env('SERVER_NAME') ? env('SERVER_NAME') : 'localhost';

if (env('SERVER_PORT') != 80) {
if (env('SERVER_PORT') != NULL && env('SERVER_PORT') != 80) {
$server .= ':' . env('SERVER_PORT');
}

Expand Down

0 comments on commit a3b5065

Please sign in to comment.