Skip to content

Commit

Permalink
Use explicit comparison of the constructor argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvermeyen committed Mar 29, 2015
1 parent 18c6c55 commit 365be33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VanillaSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class VanillaSession implements Session
*/
public function __construct(array &$session = null)
{
if ($session) {
if ($session !== null) {
$this->session = & $session;
} else {
$this->session = & $_SESSION;
Expand Down

0 comments on commit 365be33

Please sign in to comment.