Skip to content

Commit 36a0d47

Browse files
committed
fix issue with php 5.3x
1 parent b4df544 commit 36a0d47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sparkpost.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ public function init_sp_http_mailer($args)
121121
return $args;
122122
}
123123

124-
static function is_sandbox($email) {
125-
return array_slice(explode('@', $email), -1)[0] === 'sparkpostbox.com';
124+
static function is_sandbox($email)
125+
{
126+
$email_splitted = array_slice(explode('@', $email), -1);
127+
return $email_splitted[0] === 'sparkpostbox.com';
126128
}
127129
}

0 commit comments

Comments
 (0)