summaryrefslogtreecommitdiffstats
path: root/admin/survey/classes/class.SurveySetting.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/survey/classes/class.SurveySetting.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/admin/survey/classes/class.SurveySetting.php b/admin/survey/classes/class.SurveySetting.php
index 21198aa..ae2aa55 100644
--- a/admin/survey/classes/class.SurveySetting.php
+++ b/admin/survey/classes/class.SurveySetting.php
@@ -18,7 +18,7 @@ class SurveySetting
// konstrutor
protected function __construct() {}
// kloniranje
- final private function __clone() {}
+ private function __clone() {}
/** Poskrbimo za samo eno instanco razreda
*
@@ -59,10 +59,14 @@ class SurveySetting
if (isset($this->getSurveyMiscSetting[$what])) {
return $this->getSurveyMiscSetting[$what];
}
-
if (is_string($what))
{
- $stringSelect = "SELECT value FROM srv_survey_misc WHERE sid='".self::$sid ."' AND what = '".$what."'";
+ if(is_array(self::$sid)){
+ $sid = implode('',self::$sid);
+ }else{
+ $sid=self::$sid;
+ }
+ $stringSelect = "SELECT value FROM srv_survey_misc WHERE sid='".$sid ."' AND what = '".$what."'";
$sqlSelect = sisplet_query($stringSelect);
if (mysqli_num_rows($sqlSelect) > 0)
{