Skip to content
Snippets Groups Projects
Commit 37f4425a authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Merge pull request #215 from enricocavalli/patch-1

Corrected logic in checkSessionCookie
parents 6c841e30 19797bae
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,7 @@ class HTTP
*/
public static function checkSessionCookie($retryURL = null)
{
if (!is_string($retryURL) || !is_null($retryURL)) {
if (!is_string($retryURL) && !is_null($retryURL)) {
throw new \InvalidArgumentException('Invalid input parameters.');
}
......@@ -1024,4 +1024,4 @@ class HTTP
$p->show();
exit(0);
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment