Skip to content

Commit 6e4d7d0

Browse files
committed
Fixed bug to employ just one session method jmathai#88
Merged from https://github.com/leandrozack/epiphany
1 parent 3716a2b commit 6e4d7d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EpiSession.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function set($key = null, $value = null);
5555
function getSession()
5656
{
5757
$employ = EpiSession::employ();
58-
$class = array_shift($employ);
58+
$class = is_array($employ) ? array_shift($employ) : $employ;
5959
if($employ && class_exists($class))
6060
return EpiSession::getInstance($class, $employ);
6161
elseif(class_exists(EpiSession::PHP))

0 commit comments

Comments
 (0)