phpdevshell team mailing list archive
-
phpdevshell team
-
Mailing list archive
-
Message #00412
[Bug 702600] Re: $this->security->get returns Undefined Index error
This in general is standard PHP behavior. You need to check variables
are set be fore using them. The empty() function works well for this.
if (! empty($this->security->get['some_item'])) {
// Do something...
}
** Changed in: phpdevshell
Status: New => Invalid
** Converted to question:
https://answers.launchpad.net/phpdevshell/+question/141403
--
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/702600
Title:
$this->security->get returns Undefined Index error
Status in Open Source PHP RAD Framework with UI.:
Invalid
Bug description:
When I use $this->security->post['some_item'] and some_item is not set, it works fine (no error), but when you use $this->security->get['some_item'] and some_item is not set it gives you a warning/notice that says:
Undefined index: some_item
References