Hi thanks for your reply. That did the trick!
I am using the following in my themes functions.php:
function sidebar_has_active_widgets($sidebar) {
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
if ( is_plugin_active('dynamic-widgets/dynamic-widgets.php') ) {
$DW = &$GLOBALS['DW'];
if (!empty($sidebar) && is_array($DW->removelist) && array_key_exists($sidebar, $DW->removelist)) {
return false;
}
}
return true;
}