Welcome Guest, Not a member yet? Register   Sign In
Unexpected flashdata behavior
#6

[eluser]mddd[/eluser]
Well, $this->data['entry'] is set to the result of get_user($id);
You've said, if you supply an incorrect user id, it does work (in other words: it returns false).
But what are other possible return values. Perhaps if it doesn't find anything you expect it to return false but maybe it returns an empty array or something. That is not 'false' so it would not match your 'if' condition..
So I would suggest checking out what return values you get for different situations, to understand what is happening.


Messages In This Thread
Unexpected flashdata behavior - by El Forum - 06-17-2010, 09:27 AM
Unexpected flashdata behavior - by El Forum - 06-17-2010, 09:47 AM
Unexpected flashdata behavior - by El Forum - 06-17-2010, 09:53 AM
Unexpected flashdata behavior - by El Forum - 06-17-2010, 10:03 AM
Unexpected flashdata behavior - by El Forum - 06-17-2010, 11:07 AM
Unexpected flashdata behavior - by El Forum - 06-18-2010, 12:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB