Skip to content

Commit

Permalink
<PHP7.4> fix error on change_content_editor_mode() .
Browse files Browse the repository at this point in the history
  • Loading branch information
tomk79 committed Dec 29, 2019
1 parent 47e62c8 commit 7cd7c5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion php/fncs/change_content_editor_mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function change_content_editor_mode( $editor_mode_to, $page_path=null ){
$path_content_to = null;
if( $this->px->site() ){
$page_info = $this->px->site()->get_page_info( $page_path );
$path_content_to = $page_info['content'];
if( is_array($page_info) && array_key_exists('content', $page_info) ){
$path_content_to = $page_info['content'];
}
}
if( !strlen( $path_content_to ) ){
$path_content_to = $page_path;
Expand Down

0 comments on commit 7cd7c5d

Please sign in to comment.