From 17f430be0406bc01c7f88732b46e00adf663dc6e Mon Sep 17 00:00:00 2001
From: aydreeihn <adriane@enhancesoft.com>
Date: Mon, 20 Aug 2018 16:42:35 -0500
Subject: [PATCH] Staff Profile Updates:

This commit fixes an issue where the ORM was trying to get invalid Staff fields (which we actually store in the config table), therefore throwing an error.
---
 include/class.staff.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/class.staff.php b/include/class.staff.php
index 608b6b7c0..f15195d9f 100644
--- a/include/class.staff.php
+++ b/include/class.staff.php
@@ -76,7 +76,9 @@ implements AuthenticatedUser, EmailContact, TemplateVariable, Searchable {
         if (isset($this->_config[$field]))
             return $this->_config[$field];
 
-        return parent::get($field, $default);
+        try {
+            return parent::get($field, $default);
+        } catch (Exception $e) {}
     }
 
     function getConfig() {
-- 
GitLab