fix array key check

darcs-hash:20080517164218-84dde-20ee8612a1d3cd913b1412d5ee56a72a2b741f2b.gz
This commit is contained in:
Evan Prodromou 2008-05-17 12:42:18 -04:00
parent 80ee6ee1d2
commit 10750993fe

View File

@ -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;