PHP notice

Undefined variable: respstatsread

/mnt/data/shnoulle/nginx/www/develop/application/views/admin/survey/topbar/topbar_additions.php(16)

04 if ($topBar['type'] == 'survey') {
05     $aExportItemsArray = [];
06 
07     $aExportItemsArray["surveystructure"] = [
08         "key" => "surveystructure",
09         "description" => "".gT("Survey structure (.lss)"),
10         "detailpage" => "<p>".gT("This export will dump all the groups, questions, answers and conditions for your survey into a .LSS file (which is basically an XML file). This dump file can be used with the 'Import survey' feature when creating a new survey.",'json')."</p>"
11         ."<p>".gT("A survey which uses a custom theme will import fine, but the template it refers to will not exist on the new server. In that case the system will use the global default theme.",'json')."</p>"
12         ."<p><b>".gT("Please note: This file does not contain any collected responses.",'json')."</b></p>",
13         "href" => $this->createUrl("admin/export/sa/survey/action/exportstructurexml/surveyid/".$oSurvey->sid),
14         "download" => true,
15     ];
16     if(($respstatsread && $surveyexport)) {
17         $aExportItemsArray["surveyarchive"] = ($oSurvey->isActive)
18         ? [
19             "key" => "surveyarchive",
20             "description" => "".gT("Survey archive (.lsa)",'json'),
21             "detailpage" => "
22             <p>".gT("This export is intended to create a complete backup of an active survey for archival purposes.",'json')."</p>
23             <p>".gT("It will include the following data in a ZIP file ending with '.lsa'.",'json')."</p>
24             <ul>
25                 <li>".gT("Survey structure",'json')."</li>
26                 <li>".gT("Response data (Attention: Doesn't include files uploaded in a file upload question. These have to be exported separately.)",'json')."</li>
27                 <li>".gT("Survey participant data (if available)",'json')."</li>
28                 <li>".gT("Timings (if activated)",'json')."</li>

Stack Trace

#3
+
 /mnt/data/shnoulle/nginx/www/develop/application/controllers/AdminController.php(220): CController->renderPartial("/admin/survey/topbar/topbar_additions", array("lang" => null, "sid" => "454883", "title_bar" => array("title" => "Line can be hidden (ID:454883)"), "subaction" => "Survey logic file", ...), false, false)
215             }
216 
217           }
218         }
219 
220         return parent::renderPartial($view,$data,$return,$processOutput);
221      }
222 
223     /**
224      * Routes all the actions to their respective places
225      *
#4
+
 /mnt/data/shnoulle/nginx/www/develop/application/core/Survey_Common_Action.php(574): AdminController->renderPartial("/admin/survey/topbar/topbar_additions", array("lang" => null, "sid" => "454883", "title_bar" => array("title" => "Line can be hidden (ID:454883)"), "subaction" => "Survey logic file", ...))
569             $aData['respstatsread'] = $respstatsread;
570             $aData['surveyexport']  = $surveyexport;
571             $aData['onelanguage']   = $oneLanguage;
572             $aData['topBar']['type'] = isset($aData['topBar']['type']) ? $aData['topBar']['type'] : 'survey';
573         }
574         $this->getController()->renderPartial("/admin/survey/topbar/topbar_additions", $aData);
575 
576     }
577 
578     /**
579      * Shows admin menu for question
#5
+
 /mnt/data/shnoulle/nginx/www/develop/application/views/admin/super/layout_insurvey.php(75): Survey_Common_Action->_generaltopbarAdditions(array("lang" => null, "sid" => "454883", "title_bar" => array("title" => "Line can be hidden (ID:454883)"), "subaction" => "Survey logic file", ...))
70                     //With content of /admin/survey/surveySummary_view
71                     $this->_nsurveysummary($aData);
72 
73                     echo $content;
74                     
75                     $this->_generaltopbarAdditions($aData);
76                 echo "</div>\n";
77             echo "</div>\n";
78         echo "</div>\n";
79     echo "</div>\n";
80 echo "<!-- END LAYOUT_INSURVEY -->";
2019-09-05 12:49:17 nginx/1.16.1 Yii Framework/1.1.21