diff --git a/include/class.staff.php b/include/class.staff.php index 2618730bcb985800fb3a46766af83738232e089c..7f2392b5158708f7fb4bb0e3eafd10e1eccbcfd3 100644 --- a/include/class.staff.php +++ b/include/class.staff.php @@ -69,16 +69,17 @@ implements AuthenticatedUser, EmailContact, TemplateVariable, Searchable { function get($field, $default=false) { + // Check primary fields + try { + return parent::get($field, $default); + } catch (Exception $e) {} + // Autoload config if not loaded already if (!isset($this->_config)) $this->getConfig(); if (isset($this->_config[$field])) return $this->_config[$field]; - - try { - return parent::get($field, $default); - } catch (Exception $e) {} } function getConfig() {