Fix accessing post properties

This commit is contained in:
Alex Kirk 2023-01-27 14:28:56 +01:00
parent 934ef868da
commit 6b8fb5af0c

View file

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