Skip to content

Commit

Permalink
Fix the empty propert bug caused due to php7 uniform variable syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrajesh committed Dec 23, 2015
1 parent 6e0f7e4 commit 2f84811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/gallery/class-mpp-gallery.php
Expand Up @@ -239,7 +239,7 @@ private function map_object( $_gallery ){
foreach ( get_object_vars( $_gallery ) as $key => $value ) {

if ( isset( $field_map[ $key ] ) )
$this->$field_map[ $key ] = $value;
$this->{$field_map[ $key ]} = $value;

}
//there is no harm in doing this
Expand Down
2 changes: 1 addition & 1 deletion core/media/class-mpp-media.php
Expand Up @@ -285,7 +285,7 @@ public function map_object( $media ){
foreach ( get_object_vars( $media ) as $key => $value ) {

if ( isset( $field_map[ $key ] ) )
$this->$field_map[ $key ] = $value;
$this->{$field_map[ $key ]} = $value;

}

Expand Down

0 comments on commit 2f84811

Please sign in to comment.