DataTypeList: retrieve settings in a failsafe way

This commit is contained in:
Thomas Gelf 2016-05-25 08:15:21 +02:00
parent 7fea8c4787
commit 1ee81fe498
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class DataTypeDatalist extends DataTypeHook
$select = $db->select() $select = $db->select()
->from('director_datalist_entry', array('entry_name', 'entry_value')) ->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'); ->order('entry_value ASC');
return $db->fetchPairs($select); return $db->fetchPairs($select);