diff --git a/include/class.staff.php b/include/class.staff.php index 878c0333efc1cc5ad8416dba744c02ebc0c379f5..ecaaba2adbfb897bbb53b07e44a468eb72374a12 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;