removed extraneous lines and switched to static call.
authorJamie McClelland <jm@mayfirst.org>
Wed, 19 Oct 2016 14:31:19 +0000 (10:31 -0400)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 28 Nov 2016 12:04:02 +0000 (17:34 +0530)
CRM/Core/BAO/Dashboard.php

index f5ea0ba9f79f51d4fdf4b24cae342b7b2c9baf31..eaa4e2f9ec3c7e7ec4829edac0c339c0bbda506b 100644 (file)
@@ -439,9 +439,7 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard {
     }
     else {
       //Get the id of Logged in User
-      $session = CRM_Core_Session::singleton();
-      $contactID = CRM_Core_Session::singleton()->getLoggedInContactID();
-      $contactID = $session->get('userID');
+      $contactID = CRM_Core_Session::getLoggedInContactID();
       if (!empty($contactID)) {
         $contactIDs[$contactID] = NULL;
       }