Przeglądaj źródła

Assign a default value to theme_default if not set.

Thijs Kinkhorst 23 lat temu
rodzic
commit
7e299ed4f5
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      config/conf.pl

+ 1 - 0
config/conf.pl

@@ -2417,6 +2417,7 @@ sub save_data {
 
 
 	# strings
 	# strings
         print CF "\$theme_css = '$theme_css';\n";
         print CF "\$theme_css = '$theme_css';\n";
+	if ( $theme_default eq '' ) { $theme_default = '0'; }
         print CF "\$theme_default = $theme_default;\n";
         print CF "\$theme_default = $theme_default;\n";
 
 
         for ( $count = 0 ; $count <= $#theme_name ; $count++ ) {
         for ( $count = 0 ; $count <= $#theme_name ; $count++ ) {