fix array key check
darcs-hash:20080517164218-84dde-20ee8612a1d3cd913b1412d5ee56a72a2b741f2b.gz
This commit is contained in:
parent
80ee6ee1d2
commit
10750993fe
|
@ -27,7 +27,7 @@ class Action { // lawsuit
|
||||||
}
|
}
|
||||||
|
|
||||||
function arg($key) {
|
function arg($key) {
|
||||||
if (array_has_key($this->args, $key)) {
|
if (array_key_exists($key, $this->args)) {
|
||||||
return $this->args[$key];
|
return $this->args[$key];
|
||||||
} else {
|
} else {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user