Skip to content

Commit

Permalink
Check if rel_id is set
Browse files Browse the repository at this point in the history
  • Loading branch information
4Giedrius committed Sep 23, 2015
1 parent 99382c7 commit f6bd289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bb-modules/Support/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ public function ticketCreateForClient(\Model_Client $client, \Model_SupportHelpd
$rel_type = $this->di['array_get']($data, 'rel_type', NULL);


if ($rel_type == \Model_SupportTicket::REL_TYPE_ORDER) {
if (!is_null($rel_id) && $rel_type == \Model_SupportTicket::REL_TYPE_ORDER) {
$orderService = $this->di['mod_service']('order');
$o = $orderService->findForClientById($client, $rel_id);
if (!$o instanceof \Model_ClientOrder) {
Expand Down

0 comments on commit f6bd289

Please sign in to comment.