From 1ee81fe4988ee9919c8746094857d282db1c62f6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 25 May 2016 08:15:21 +0200 Subject: [PATCH] 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 6f38e561..0e61d8a2 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);