Skip to content

Commit f3b7ff9

Browse files
committed
Checking if property is set bt checking key instead
We want to know if it is set, not if it is set and not null (which isset basically means)
1 parent 2b2d1e9 commit f3b7ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

klein.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function param($key, $default = null) {
323323
}
324324

325325
public function __isset($param) {
326-
return isset($_REQUEST[$param]);
326+
return array_key_exists($param, $_REQUEST);
327327
}
328328

329329
public function __get($param) {

0 commit comments

Comments
 (0)