Skip to content

Commit

Permalink
another place where widget class needed to be checked for existance
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemoya committed Sep 18, 2012
1 parent 67e9d19 commit 1b81115
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions views/view-admin-sidebar.php
Expand Up @@ -76,8 +76,10 @@
$dropzones = WidgetPress_Controller_Dropzones::get_dropzones('dropzone');
foreach ((array)$dropzones as $dropzone){
if(is_object($dropzone)){
$widget = $dropzone->get('class');
include(WPDZ_VIEWS . 'view-admin-widget.php');
if(class_exists($dropzone->get('class'))){
$widget = $dropzone->get('class');
include(WPDZ_VIEWS . 'view-admin-widget.php');
}
}
}

Expand Down

0 comments on commit 1b81115

Please sign in to comment.