Procházet zdrojové kódy

Be consistent

Signed-off-by: Suki <[email protected]>
Suki před 10 roky
rodič
revize
e082bb5ede
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);