diff --git a/sites/all/modules/panels/panels.module b/sites/all/modules/panels/panels.module
index b7d233a..4a1db01 100644
--- a/sites/all/modules/panels/panels.module
+++ b/sites/all/modules/panels/panels.module
@@ -1195,8 +1195,8 @@ function template_preprocess_panels_pane(&$vars) {
 
   // Add some usable classes based on type/subtype
   ctools_include('cleanstring');
-  $type_class = $content->type ? 'pane-'. ctools_cleanstring($content->type, array('lower case' => TRUE)) : '';
-  $subtype_class = $content->subtype ? 'pane-'. ctools_cleanstring($content->subtype, array('lower case' => TRUE)) : '';
+  $type_class = isset($content->type) ? 'pane-'. ctools_cleanstring($content->type, array('lower case' => TRUE)) : '';
+  $subtype_class = isset($content->subtype) ? 'pane-'. ctools_cleanstring($content->subtype, array('lower case' => TRUE)) : '';
 
   // Sometimes type and subtype are the same. Avoid redundant classes.
   $vars['classes_array'][] = $type_class;
