Skip to content

Commit

Permalink
fixed session warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Shardj committed Mar 11, 2019
1 parent 278a768 commit 82a4367
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Zend/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ public static function setOptions(array $userOptions = array())

// set the ini based values
if (array_key_exists($userOptionName, self::$_defaultOptions)) {
ini_set("session.$userOptionName", $userOptionValue);
if(!self::$_sessionStarted) {
ini_set("session.$userOptionName", $userOptionValue);
}
}
elseif (isset(self::$_localOptions[$userOptionName])) {
self::${self::$_localOptions[$userOptionName]} = $userOptionValue;
Expand Down

0 comments on commit 82a4367

Please sign in to comment.