Skip to content

Commit 1ae9042

Browse files
author
Andrew Keynes
committed
Workaround limitations of empty() in PHP < 5.5
1 parent 721201d commit 1ae9042

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Message/SecureXMLAbstractRequest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public function setMessageId($value)
3131
*/
3232
public function getMessageId()
3333
{
34-
if (empty($this->getParameter('messageId'))) {
34+
$messageId = $this->getParameter('messageId');
35+
36+
if (empty($messageId)) {
3537
$this->setMessageId(substr(md5(microtime()), 0, 30));
3638
}
3739

0 commit comments

Comments
 (0)