Welcome Guest, Not a member yet? Register   Sign In
Storing "0" Zero in a session as a variable
#3

[eluser]nevsie[/eluser]
Hi Roger,
Thanks for your reply - i must admit i was assuming that CI was filtering the values before putting them into the session. However, after the above post and digging through the code and functions i was provided from the previous developer i found it to be a bit of sloppy code that runs an if statement on the value while prepping it. As such of course 0 will be identified as false, hence no value.

Thanks for the reply anyhow. I should have hit the debugging first, rather than trust supplied code!
N


Messages In This Thread
Storing "0" Zero in a session as a variable - by El Forum - 07-18-2011, 05:05 AM
Storing "0" Zero in a session as a variable - by El Forum - 07-18-2011, 05:55 AM
Storing "0" Zero in a session as a variable - by El Forum - 07-18-2011, 06:57 AM
Storing "0" Zero in a session as a variable - by El Forum - 07-18-2011, 08:12 AM
Storing "0" Zero in a session as a variable - by El Forum - 07-18-2011, 08:14 AM
Storing "0" Zero in a session as a variable - by El Forum - 07-18-2011, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB