Commit
__isset()
.
There was a missing $ before name. Fixes issues with dynamic properties not being handled correctly. Fixes #2450
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -796,7 +796,7 @@ public function __set($name, $value) { | |
* @return boolean | ||
*/ | ||
public function __isset($name) { | ||
return isset($this->name); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
markstory
Author
Member
|
||
return isset($this->{$name}); | ||
} | ||
|
||
/** | ||
|
oops, my dumb mistake. however this only works for properties not needing magic __get()
doing:
$this->request->params['action'] = 'index';
isset ($this->action) will return false
now DebugKit toolbar doesnt show anymore because its doing if (empty($this->output)) check in DebugView