From 67ef23d75893162da55c337fc02f816e69a6a586 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Tue, 26 Feb 2019 10:57:12 +1000 Subject: [PATCH] Only set thread if we can get thread when warning, and fix theme uninstallation --- inc/mod/pages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index a1bc7767..2578a05a 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1940,7 +1940,7 @@ function mod_warning_post($board,$post, $token = false) { 'token' => $security_token ); - if($_GET['thread']) { + if(isset($_GET['thread'])) { $args['thread'] = $_GET['thread']; } @@ -3200,7 +3200,7 @@ function mod_theme_uninstall($theme_name) { // Clean cache Cache::delete("themes"); - Cache::delete("theme_settings_".$theme_name); + Cache::delete("theme_settings_".$theme); header('Location: ?/themes', true, $config['redirect_http']); }