[icinga-checkins] icinga.org: icingaweb2-module-director/master: DataTypeList: retrieve settings in a failsafe way

git at icinga.org git at icinga.org
Wed May 25 08:17:08 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 1ee81fe4988ee9919c8746094857d282db1c62f6
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=1ee81fe4988ee9919c8746094857d282db1c62f6

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed May 25 08:15:21 2016 +0200

DataTypeList: retrieve settings in a failsafe way

---

 library/Director/DataType/DataTypeDatalist.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/DataType/DataTypeDatalist.php b/library/Director/DataType/DataTypeDatalist.php
index 6f38e56..0e61d8a 100644
--- a/library/Director/DataType/DataTypeDatalist.php
+++ b/library/Director/DataType/DataTypeDatalist.php
@@ -23,7 +23,7 @@ class DataTypeDatalist extends DataTypeHook
 
         $select = $db->select()
             ->from('director_datalist_entry', array('entry_name', 'entry_value'))
-            ->where('list_id = ?', $this->settings['datalist_id'])
+            ->where('list_id = ?', $this->getSetting('datalist_id'))
             ->order('entry_value ASC');
 
         return $db->fetchPairs($select);



More information about the icinga-checkins mailing list