plugins/SpecialAdmin.php
changeset 1008 d21eef4f9e8c
parent 983 36e42d787d1d
child 1009 fa665a95e99d
--- a/plugins/SpecialAdmin.php	Wed May 27 09:46:16 2009 -0400
+++ b/plugins/SpecialAdmin.php	Wed May 27 14:15:15 2009 -0400
@@ -504,6 +504,10 @@
           <?php
               foreach ( $template->named_theme_list as $theme_id => $theme_data )
               {
+                if ( !isset($theme_data['theme_name']) )
+                  // probably a system theme
+                  continue;
+                  
                 $theme_name = htmlspecialchars($theme_data['theme_name']);
                 $selected = ( $theme_id === getConfig('theme_default') ) ? ' selected="selected"' : '';
                 echo "  <option value=\"$theme_id\"$selected>$theme_name</option>\n          ";