summaryrefslogtreecommitdiffstats
path: root/codebase/db_common.php
diff options
context:
space:
mode:
Diffstat (limited to 'codebase/db_common.php')
-rw-r--r--codebase/db_common.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/codebase/db_common.php b/codebase/db_common.php
index 5690093..53f1999 100644
--- a/codebase/db_common.php
+++ b/codebase/db_common.php
@@ -195,7 +195,9 @@ class DataRequestConfig{
name of source table
*/
public function set_source($value){
- $this->source=trim($value);
+ if (is_string($value))
+ $value = trim($value);
+ $this->source = $value;
if (!$this->source) throw new Exception("Source of data can't be empty");
}
/*! sets data limits