From cfb80987d46f149f2805ce072dd18369b0022905 Mon Sep 17 00:00:00 2001 From: Yury Pikhtarev Date: Mon, 20 Nov 2023 21:07:31 +0400 Subject: [PATCH] Apply fixes from StyleCI (#1139) --- src/Ajax.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Ajax.php b/src/Ajax.php index d9ff9a125..469d021c0 100644 --- a/src/Ajax.php +++ b/src/Ajax.php @@ -528,13 +528,14 @@ class Ajax { global $bb_cfg, $lang, $userdata; - if (!$bb_cfg['tor_thank']) $this->ajax_die($lang['DISABLED']); + if (!$bb_cfg['tor_thank']) { + $this->ajax_die($lang['DISABLED']); + } $mode = (string) $this->request['mode']; $topic_id = (int) $this->request['topic_id']; - switch($mode) - { + switch($mode) { case 'add': $row = DB()->fetch_row('SELECT * FROM '. BB_THX ." WHERE topic_id = $topic_id AND user_id = ". $userdata['user_id']);