Welcome Guest, Not a member yet? Register   Sign In
[Solved] Adding OR / || to if statement
#4

(02-23-2017, 10:13 PM)neuron Wrote: Hi,
I did not understand what you meant by "but throws redirect error",
can you try in following way: 
if (!in_array($route$ignore) && (!$this->session->userdata('token') || !$this->session->userdata('user_id')))

All working now thanks
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
RE: Adding OR / || to if statement - by neuron - 02-23-2017, 10:13 PM
RE: Adding OR / || to if statement - by wolfgang1983 - 02-23-2017, 10:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB