summaryrefslogtreecommitdiffstats
path: root/admin/survey/modules/mod_vizualizacija/class.SurveyVizualizacija.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2024-05-27 13:08:29 +0200
commit75160b12821f7f4299cce7f0b69c83c1502ae071 (patch)
tree27e25e4ccaef45f0c58b22831164050d1af1d4db /admin/survey/modules/mod_vizualizacija/class.SurveyVizualizacija.php
parentprvi-commit (diff)
download1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.gz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.bz2
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.lz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.xz
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.tar.zst
1ka-75160b12821f7f4299cce7f0b69c83c1502ae071.zip
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')){