jmathai / epiphany

A micro PHP framework that's fast, easy, clean and RESTful. The framework does not do a lot of magic under the hood. It is, by design, very simple and very powerful.
https://github.com/jmathai/epiphany
Other
686 stars 139 forks source link

Problem in EpiSession.php on line 58 fixed #86

Open tunnckoCore opened 10 years ago

tunnckoCore commented 10 years ago

I think Epiphany is great and run examples in localhost, i.e. examples/login/. But appear this error Warning: array_shift() expects parameter 1 to be array, null given ... EpiSession.php on line 58 and its correct.

Just change to

if ($employ) {
    $class = array_shift($employ);
}

Best regards

ghost commented 10 years ago

I solved in this way :

$employ = array(EpiSession::employ());
$class = array_shift($employ);
bars38 commented 9 years ago

I still got such an error in than I use examples of login Warning: array_shift() expects parameter 1 to be array, null given in C:\OpenServer\domains\em.local\epiphany\src\EpiSession.php on line 58