From 8ebe18b1cd64b7be815e1ba3114f1d683b2da138 Mon Sep 17 00:00:00 2001
From: neewy <n.yushkevich@hotmail.com>
Date: Sun, 12 Apr 2015 23:12:23 +0400
Subject: [PATCH] Logged user fix

Checks whether user is logged in so it directs you to tickets.php instead of view.php
---
 index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.php b/index.php
index 2e526f699..5a18fb146 100644
--- a/index.php
+++ b/index.php
@@ -44,7 +44,7 @@ require(CLIENTINC_DIR.'header.inc.php');
     </div>
     <div class="front-page-button pull-right">
         <p>
-            <a href="view.php" class="blue button"><?php echo __('Check Ticket Status');?></a>
+            <a href="<?php if(is_object($thisclient)){ echo 'tickets.php';} else {echo 'view.php';}?>" class="blue button"><?php echo __('Check Ticket Status');?></a>
         </p>
     </div>
 </div>
-- 
GitLab