From 36a5c31baeb4063e7c10768319984eff9f21f12e Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Thu, 26 Dec 2013 20:40:11 +0400 Subject: [PATCH] history session fix --- intaro.intarocrm/classes/general/ICrmOrderActions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index 89c5633d..ece50a5a 100755 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -281,7 +281,7 @@ class ICrmOrderActions public static function orderHistory() { global $USER; - if($USER) { + if(isset($_SESSION["SESS_AUTH"]["USER_ID"]) && $_SESSION["SESS_AUTH"]["USER_ID"]) { $realUser = $USER->GetID(); $USER->Logout(); } else { // for agent; to add order User