Fixed a PHP warning in Admin:GeneralConfig default theme selection
authorDan
Wed, 27 May 2009 14:15:15 -0400
changeset 1008 d21eef4f9e8c
parent 1007 2b77ebbf8701
child 1009 fa665a95e99d
Fixed a PHP warning in Admin:GeneralConfig default theme selection
plugins/SpecialAdmin.php
--- 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          ";