summaryrefslogtreecommitdiffstats
path: root/admin/survey/modules/mod_vizualizacija/class.SurveyVizualizacija.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/survey/modules/mod_vizualizacija/class.SurveyVizualizacija.php')
-rw-r--r--admin/survey/modules/mod_vizualizacija/class.SurveyVizualizacija.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/admin/survey/modules/mod_vizualizacija/class.SurveyVizualizacija.php b/admin/survey/modules/mod_vizualizacija/class.SurveyVizualizacija.php
index 1c9884b..c39645c 100644
--- a/admin/survey/modules/mod_vizualizacija/class.SurveyVizualizacija.php
+++ b/admin/survey/modules/mod_vizualizacija/class.SurveyVizualizacija.php
@@ -20,9 +20,7 @@ class SurveyVizualizacija{
# polovimo vrsto tabel (aktivne / neaktivne)
SurveyInfo :: getInstance()->SurveyInit($this->anketa);
- if (SurveyInfo::getInstance()->getSurveyColumn('db_table') == 1) {
- $this->db_table = '_active';
- }
+ $this->db_table = SurveyInfo::getInstance()->getSurveyArchiveDBString();
}
}
@@ -135,10 +133,11 @@ class SurveyVizualizacija{
'BOMchar' => "\xEF\xBB\xBF");
# dodamo boomchar za utf-8
fwrite($fd2, $convertTypes[$convertType]['BOMchar']);
-
+ $output1='';
+ $output2='';
# naredimo header row
foreach ($_HEADERS AS $spid => $spremenljivka) {
- if (count($spremenljivka['grids']) > 0) {
+ if (isset($spremenljivka['grids'])&&count($spremenljivka['grids']) > 0) {
foreach ($spremenljivka['grids'] AS $gid => $grid) {
foreach ($grid['variables'] AS $vid => $variable ){
if ($spremenljivka['tip'] !== 'sm' && !($variable['variable'] == 'uid' && $variable['naslov'] == 'User ID')){