Ready to get started?Download WordPress


CMS Tree Page View
[resolved] Fix for three non-fatal errors (2 posts)

  1. damienwhaley
    Posted 1 year ago #


    I'm using cms-tree-page-view and also blackbox (for development) and blackbox was showing three errors in cms_tpv_get_options() function. I've fixed these errors and the code is below (this is in functions.php):

     * Load settings
     * @return array with options
    function cms_tpv_get_options() {
    	$arr_options = (array) get_option('cms_tpv_options');
    	if (array_key_exists('dashboard', $arr_options)) {
    		$arr_options['dashboard'] = (array) @$arr_options['dashboard'];
    	else {
    		$arr_options['dashboard'] = array();
    	if (array_key_exists('menu', $arr_options)) {
    		$arr_options['menu'] = (array) @$arr_options['menu'];
    	else {
    		$arr_options['menu'] = array();
    	if (array_key_exists('postsoverview', $arr_options)) {
    		$arr_options['postsoverview'] = (array) @$arr_options['postsoverview'];
    	else {
    		$arr_options['postsoverview'] = array();
    	return $arr_options;

    Can you please take a look and let me know if you think it's OK, and if so, can you please merge it? Sorry if this is not the right way to do this, I'm only new here.




  2. Pär Thernström
    Plugin Author

    Posted 1 year ago #

    Thanks! I'll take a look at your code and if it looks ok I'll add it to the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.