$this->security->get returns Undefined Index error
Bug #702600 reported by
jsherk
This bug report was converted into a question: question #141403: $this->security->get returns Undefined Index error.
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PHPDevShell |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When I use $this->
Undefined index: some_item
To post a comment you must log in.
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...
}