Popravek prikaza "anketa ne obstaja" ce hash ankete ne obstaja

This commit is contained in:
pero1203 2021-10-06 11:44:31 +02:00
parent 13f372f4da
commit 3b3bcb222c
2 changed files with 1 additions and 3 deletions

View File

@ -29,8 +29,6 @@ class SurveyAdvancedParadataLog {
SurveyInfo::getInstance()->SurveyInit($this->anketa); SurveyInfo::getInstance()->SurveyInit($this->anketa);
$this->collectParadata = (SurveyInfo::getInstance()->checkSurveyModule('advanced_paradata')) ? true : false; $this->collectParadata = (SurveyInfo::getInstance()->checkSurveyModule('advanced_paradata')) ? true : false;
} }
else
throw new Exception('Survey ID not set in class.SurveyAdvancedParadataLog.php !');
} }
// Vrne instanco classa - da mamo singleton // Vrne instanco classa - da mamo singleton

View File

@ -693,7 +693,7 @@ function isVirtual(){
// Dobimo id ankete iz hash-a // Dobimo id ankete iz hash-a
function getSurveyIdFromHash($hash){ function getSurveyIdFromHash($hash){
$ank_id = 0; $ank_id = null;
$sql = sisplet_query("SELECT id FROM srv_anketa WHERE hash='".$hash."'"); $sql = sisplet_query("SELECT id FROM srv_anketa WHERE hash='".$hash."'");
if (mysqli_num_rows($sql) > 0) { if (mysqli_num_rows($sql) > 0) {