Suki 10 роки тому
батько
коміт
e082bb5ede
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Sources/Themes.php

+ 1 - 1
Sources/Themes.php

@@ -816,7 +816,7 @@ function RemoveTheme()
 	$themeID = isset($_GET['th']) ? (int) $_GET['th'] : (int) $_GET['id'];
 
 	// You can't delete the default theme!
-	if ($_GET['th'] == 1)
+	if ($themeID == 1)
 		fatal_lang_error('no_access', false);
 
 	$theme_info = get_single_theme($themeID);