Plugin Directory

Changeset 2160696


Ignore:
Timestamp:
09/21/2019 05:26:12 PM (7 years ago)
Author:
Will Brownsberger
Message:

handle all widgets closed dashboard without notice message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-issues-crm/trunk/php/entity/class-wic-entity-dashboard.php

    r2157599 r2160696  
    6161        ksort ( $sorted_dashboard_divs );
    6262        // identify which entity to start as open
    63         $open_div = isset ( $config->tall ) ? $config->tall[0] : 'dashboard_overview';
     63        $open_div = isset ( $config->tall ) ? ( isset ( $config->tall[0] ) ?  $config->tall[0] : 'dashboard_overview' ) : 'dashboard_overview';
    6464        echo '<ul id="dashboard-sortables" >';
    6565        foreach ( $sorted_dashboard_divs as $key => $dashboard_div ) {
    66             $tall_class = $open_div == $dashboard_div[0] ? ' wic-dashboard-tall ' : ''; // no longer controlled by user
     66            $tall_class = $open_div == $dashboard_div[0] ? ' wic-dashboard-tall ' : '';
    6767            echo
    6868                '<li id = "' . $dashboard_div[0] . '" class = "ui-state-default wic-dashboard  wic-dashboard-full  ' . $tall_class . '">' .
Note: See TracChangeset for help on using the changeset viewer.