Skip to content

Commit

Permalink
Change error type to E_WARNING when try to store a null value in session
Browse files Browse the repository at this point in the history
  • Loading branch information
obokaman-com authored Jun 11, 2019
2 parents 5f6d92d + bfe104d commit 4cd6330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sifo/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function set( $name, $value = null )
}
elseif ( !isset( $name ) || !isset( $value ) )
{
trigger_error( "Session: Missing parameter or parameters." );
trigger_error( 'Session: Missing parameter or parameters.', E_USER_WARNING);
return false;
}
else
Expand Down Expand Up @@ -117,7 +117,7 @@ public function delete( $name )
{
if ( !isset( $_SESSION[$name] ) )
{
trigger_error( "Session: $name variable does not exist." );
trigger_error( "Session: $name variable does not exist.", E_USER_WARNING );
return false;
}
else
Expand Down

0 comments on commit 4cd6330

Please sign in to comment.