aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/type/Default.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'type/Default.class.php')
-rw-r--r--type/Default.class.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/type/Default.class.php b/type/Default.class.php
index 0930fe3..45c4458 100644
--- a/type/Default.class.php
+++ b/type/Default.class.php
@@ -195,8 +195,13 @@ class Type_Default {
195 } 195 }
196 # or one file with multiple data_sources 196 # or one file with multiple data_sources
197 else { 197 else {
198 # use data_sources as sources 198 if(is_array($this->data_sources) && count($this->data_sources)==1 && in_array('value', $this->data_sources)) {
199 $sources = $this->data_sources; 199 # use tinstances as sources
200 $sources = $this->tinstances;
201 } else {
202 # use data_sources as sources
203 $sources = $this->data_sources;
204 }
200 } 205 }
201 $this->parse_ds_names($sources); 206 $this->parse_ds_names($sources);
202 return $sources; 207 return $sources;