CI is very picky
jdarwood007

jdarwood007 commited on 2019-03-09 12:28:05
Showing 2 changed files, with 4 additions and 2 deletions.

... ...
@@ -520,7 +520,9 @@ function shd_save_ticket()
520 520
 	if (!empty($context['ticket_id']) && !empty($ticketinfo) && !empty($ticketinfo['starter_id']))
521 521
 	{
522 522
 		loadMemberData($ticketinfo['starter_id']);
523
-		if (isset($ticketinfo, $memberContext[$ticketinfo['starter_id']]) && loadMemberContext($ticketinfo['starter_id']))
523
+		$member_loaded = loadMemberContext($ticketinfo['starter_id']);
524
+
525
+		if (!empty($member_loaded))
524 526
 			$context['ticket_form']['member'] = array(
525 527
 				'name' => $ticketinfo['starter_name'],
526 528
 				'id' => $ticketinfo['starter_id'],
... ...
@@ -586,5 +586,5 @@ function template_shd_button_strip($button_strip, $direction = '', $strip_option
586 586
 {
587 587
 	// If SMF version exists, use it.
588 588
 	if (function_exists('template_button_strip'))
589
-		template_button_strip($button_strip, $direction = '', $strip_options = array());
589
+		template_button_strip($button_strip, $direction, $strip_options);
590 590
 }
591 591
\ No newline at end of file
592 592