Welcome Guest, Not a member yet? Register   Sign In
Personal library and Undefined property $input
#6

[eluser]CroNiX[/eluser]
because the input method returns boolean FALSE if it doesn't exist....so it will always be set making your isset() check useless.

Try
Code:
if ($this->CI->input->server('PHP_AUTH_USER') !== FALSE)

also input->server() has (), not [] as it's not an array. It's a method returning a value.


Messages In This Thread
Personal library and Undefined property $input - by El Forum - 08-28-2012, 08:33 AM
Personal library and Undefined property $input - by El Forum - 08-28-2012, 08:41 AM
Personal library and Undefined property $input - by El Forum - 08-28-2012, 08:53 AM
Personal library and Undefined property $input - by El Forum - 08-28-2012, 08:55 AM
Personal library and Undefined property $input - by El Forum - 08-29-2012, 09:14 AM
Personal library and Undefined property $input - by El Forum - 08-29-2012, 01:38 PM
Personal library and Undefined property $input - by El Forum - 12-21-2012, 05:17 AM
Personal library and Undefined property $input - by El Forum - 12-21-2012, 08:37 AM
Personal library and Undefined property $input - by El Forum - 12-21-2012, 10:07 AM
Personal library and Undefined property $input - by El Forum - 12-21-2012, 11:26 AM
Personal library and Undefined property $input - by El Forum - 12-21-2012, 11:33 AM
Personal library and Undefined property $input - by El Forum - 12-24-2012, 07:41 AM
Personal library and Undefined property $input - by El Forum - 12-24-2012, 09:18 AM
Personal library and Undefined property $input - by El Forum - 12-28-2012, 06:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB