Explorar o código

Be consistent

Signed-off-by: Suki <[email protected]>
Suki %!s(int64=10) %!d(string=hai) anos
pai
achega
e082bb5ede
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);