From bfe104dc3367e79c3321a4be7dd12771f75ff083 Mon Sep 17 00:00:00 2001 From: Javier Roman Date: Tue, 11 Jun 2019 12:24:00 +0200 Subject: [PATCH] Change error type to E_WARNING when try to store a null value in session --- src/Sifo/Session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sifo/Session.php b/src/Sifo/Session.php index e633129b..4b4ff292 100644 --- a/src/Sifo/Session.php +++ b/src/Sifo/Session.php @@ -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 @@ -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