Fix the version Fix a attachment issue
jdarwood007

jdarwood007 commited on 2023-09-22 19:03:00
Showing 4 changed files, with 6 additions and 3 deletions.

... ...
@@ -50,7 +50,7 @@ function shd_init()
50 50
 	$context['shd_home'] = 'action=helpdesk;sa=main';
51 51
 
52 52
 	// What SD version are we on? It's now here!
53
-	define('SHD_VERSION', 'SimpleDesk 2.1.1');
53
+	define('SHD_VERSION', 'SimpleDesk 2.1.2');
54 54
 
55 55
 	// This isn't the SMF way. But for something like this, it's way way more logical and readable.
56 56
 	define('TICKET_STATUS_NEW', 0);
... ...
@@ -36,6 +36,9 @@ function shd_pre_download_request()
36 36
 {
37 37
 	global $smcFunc;
38 38
 
39
+	if (empty($_REQUEST['attach']))
40
+		return;
41
+
39 42
 	// If we don't have a ticket, lets verify this is ours.
40 43
 	if (empty($_REQUEST['ticket']))
41 44
 	{
... ...
@@ -13,7 +13,7 @@
13 13
 *   Any questions, please contact SimpleDesk.net              *
14 14
 *                                                             *
15 15
 ***************************************************************
16
-* SimpleDesk Version: 2.1.0                                   *
16
+* SimpleDesk Version: 2.1.2                                   *
17 17
 * File Info: Subs-SimpleDeskManageAttachments.php             *
18 18
 **************************************************************/
19 19
 
... ...
@@ -13,7 +13,7 @@
13 13
 *   Any questions, please contact SimpleDesk.net              *
14 14
 *                                                             *
15 15
 ***************************************************************
16
-* SimpleDesk Version: 2.1.0                                   *
16
+* SimpleDesk Version: 2.1.2                                   *
17 17
 * File Info: Subs-SimpleDeskPost.php                          *
18 18
 **************************************************************/
19 19
 
20 20