Fix accessing post properties
This commit is contained in:
parent
934ef868da
commit
6b8fb5af0c
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,9 @@ class Post {
|
|||
$var = \strtolower( \substr( $method, 4 ) );
|
||||
|
||||
if ( \strncasecmp( $method, 'get', 3 ) === 0 ) {
|
||||
if ( empty( $this->$var ) && ! empty( $this->post->$var ) ) {
|
||||
return $this->post->$var;
|
||||
}
|
||||
return $this->$var;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue