From 6c4b57d2f1c94dc5b3d74ee64f475a9785626a57 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Fri, 6 Apr 2012 11:18:32 -0400
Subject: [PATCH] Fix fatal typo bug for Staff::getDept

---
 include/class.staff.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.staff.php b/include/class.staff.php
index 878c0333e..ecaaba2ad 100644
--- a/include/class.staff.php
+++ b/include/class.staff.php
@@ -177,7 +177,7 @@ class Staff {
 
     function getDept() {
 
-        if(!$this->dept && $this->getDeptIf())
+        if(!$this->dept && $this->getDeptId())
             $this->dept= Dept::lookup($this->getDeptId());
 
         return $this->dept;
-- 
GitLab