diff options
author | Stanislau Wolski <stanislau.wolski@gmail.com> | 2013-05-23 17:13:34 +0300 |
---|---|---|
committer | Stanislau Wolski <stanislau.wolski@gmail.com> | 2013-05-23 17:13:34 +0300 |
commit | 5879c60d3f11c3dc828ce80cf3e41259693e1d5e (patch) | |
tree | 3b550ec3c95ff1282efa008680732b3ef2f217ab /codebase/db_common.php | |
parent | 1a57f4905f177e470cdf320ac46ca1f28fafcc6d (diff) | |
download | connector-php-5879c60d3f11c3dc828ce80cf3e41259693e1d5e.zip connector-php-5879c60d3f11c3dc828ce80cf3e41259693e1d5e.tar.gz connector-php-5879c60d3f11c3dc828ce80cf3e41259693e1d5e.tar.bz2 |
[fix] package saving and structure updates through events
Diffstat (limited to 'codebase/db_common.php')
-rw-r--r-- | codebase/db_common.php | 4 |
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 |