summaryrefslogtreecommitdiff
path: root/inc/mod/pages.php
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2019-02-26 10:57:12 +1000
committerBenjamin Southall <applemansigloo@gmail.com>2019-02-26 10:57:12 +1000
commit67ef23d75893162da55c337fc02f816e69a6a586 (patch)
tree6227b64c09ea9fb66ec27c90f5ecb4f054394f74 /inc/mod/pages.php
parent6c07ebad1bfc66cea51d5294c9a0a55763cabb04 (diff)
Only set thread if we can get thread when warning, and fix theme uninstallation
Diffstat (limited to 'inc/mod/pages.php')
-rw-r--r--inc/mod/pages.php4
1 files 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']);
}