Popravek prikaza "anketa ne obstaja" ce hash ankete ne obstaja
This commit is contained in:
parent
13f372f4da
commit
3b3bcb222c
@ -29,8 +29,6 @@ class SurveyAdvancedParadataLog {
|
||||
SurveyInfo::getInstance()->SurveyInit($this->anketa);
|
||||
$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
|
||||
|
@ -693,7 +693,7 @@ function isVirtual(){
|
||||
// Dobimo id ankete iz hash-a
|
||||
function getSurveyIdFromHash($hash){
|
||||
|
||||
$ank_id = 0;
|
||||
$ank_id = null;
|
||||
|
||||
$sql = sisplet_query("SELECT id FROM srv_anketa WHERE hash='".$hash."'");
|
||||
if (mysqli_num_rows($sql) > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user