epiphany icon indicating copy to clipboard operation
epiphany copied to clipboard

use a session manager without calling employ()

Open kgustine opened this issue 10 years ago • 0 comments

Warning: array_shift() expects parameter 1 to be array, null given in EpiSession.php on line 58

If you initialize one, and only one, of the session implementations, you should not have to call employ().

Epi::init('session-apc'); getSession()->set('this','that');

that code would generate a warning because employ is called without an argument so it returns null. array_shift() is then called on $employ which causes the warning. I think this could be cleaned up more, but this is a quick fix.

kgustine avatar Jan 10 '15 07:01 kgustine