Skip to content

Commit

Permalink
Resolved PHP warning message. Fixes amiyasahu#86
Browse files Browse the repository at this point in the history
  • Loading branch information
amiyasahu authored and ProThoughts committed Dec 29, 2018
1 parent d25df08 commit 3b81492
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qa-theme/Donut-theme/qa-donut-layer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,10 @@ public function widgets( $region, $place )
Output the widgets (as provided in $this->content['widgets']) for $region and $place
*/
{
if ( count( @$this->content['widgets'][$region][$place] ) ) {
if ( isset($this->content['widgets'][$region][$place]) &&
is_array($this->content['widgets'][$region][$place]) &&
!empty($this->content['widgets'][$region][$place]) ) {

$col = ( $region == 'full' ) ? ' col-xs-12' : '';

$this->output( '<div class="qa-widgets-' . $region . ' qa-widgets-' . $region . '-' . $place . $col . '">' );
Expand Down

0 comments on commit 3b81492

Please sign in to comment.