What pinches this code?
if(isset($this->session->flashdata('login_error'))) { // Line 39 echo "You entered an incorrect email or password!"; }
I am using Codeigniter, and the session is loading in autoload.php.
autoload.php
The error message I get is:
Fatal error: you cannot use the return value of the method in the context of the entry in / Applications / XAMPP / xamppfiles / htdocs / application / views / login _view.php on line 39
isset , , . , , , . , isset . if ($this->session->flashdata('login_error')), .
isset
if ($this->session->flashdata('login_error'))
, ($ this- > session- > flashdata ('login_error')) false, FALSE NULL
isset. , - :
$txt = $this->session->flashdata('login_error'); if(!empty($txt)) { echo "You entered an incorrect email or password!"; }
isset . , isset . :
if($this->session->flashdata('login_error') != null) { // Line 39 echo "You entered an incorrect email or password!"; }