Skip to content

Commit

Permalink
Dev Fixed issues caused by previous incomplete DBVersion changes
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 17, 2018
1 parent 8c47314 commit 5324388
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions application/helpers/admin/import_helper.php
Expand Up @@ -105,7 +105,7 @@ function XMLImportGroup($sFullFilePath, $iNewSID)
}
}

if ($iDBVersion >= 350 && isset($xml->group_l10ns->rows->row)) {
if ($iDBVersion >= 400 && isset($xml->group_l10ns->rows->row)) {
foreach ($xml->group_l10ns->rows->row as $row) {
$insertdata = array();
foreach ($row as $key=>$value) {
Expand Down Expand Up @@ -322,7 +322,7 @@ function XMLImportGroup($sFullFilePath, $iNewSID)


// Import question_l10ns
if ($iDBVersion >= 350 && isset($xml->question_l10ns->rows->row)) {
if ($iDBVersion >= 400 && isset($xml->question_l10ns->rows->row)) {
foreach ($xml->question_l10ns->rows->row as $row) {
$insertdata = array();
foreach ($row as $key=>$value) {
Expand Down Expand Up @@ -386,7 +386,7 @@ function XMLImportGroup($sFullFilePath, $iNewSID)
}

// Import answer_l10ns
if ($iDBVersion >= 350 && isset($xml->answer_l10ns->rows->row)) {
if ($iDBVersion >= 400 && isset($xml->answer_l10ns->rows->row)) {
foreach ($xml->answer_l10ns->rows->row as $row) {
$insertdata = array();
foreach ($row as $key=>$value) {
Expand Down Expand Up @@ -754,7 +754,7 @@ function XMLImportQuestion($sFullFilePath, $iNewSID, $newgid, $options = array('
}

// Import question_l10ns
if ($iDBVersion >= 350 && isset($xml->question_l10ns->rows->row)) {
if ($iDBVersion >= 400 && isset($xml->question_l10ns->rows->row)) {
foreach ($xml->question_l10ns->rows->row as $row) {
$insertdata = array();
foreach ($row as $key=>$value) {
Expand Down Expand Up @@ -825,7 +825,7 @@ function XMLImportQuestion($sFullFilePath, $iNewSID, $newgid, $options = array('
}

// Import answer_l10ns
if ($iDBVersion >= 350 && isset($xml->answer_l10ns->rows->row)) {
if ($iDBVersion >= 400 && isset($xml->answer_l10ns->rows->row)) {
foreach ($xml->answer_l10ns->rows->row as $row) {
$insertdata = array();
foreach ($row as $key=>$value) {
Expand Down Expand Up @@ -1383,7 +1383,7 @@ function XMLImportSurvey($sFullFilePath, $sXMLdata = null, $sNewSurveyName = nul

}
}
if ($iDBVersion >= 350 && isset($xml->group_l10ns->rows->row)) {
if ($iDBVersion >= 400 && isset($xml->group_l10ns->rows->row)) {
foreach ($xml->group_l10ns->rows->row as $row) {
$insertdata = array();
foreach ($row as $key=>$value) {
Expand Down Expand Up @@ -1625,7 +1625,7 @@ function XMLImportSurvey($sFullFilePath, $sXMLdata = null, $sNewSurveyName = nul
}

// Import question_l10ns
if ($iDBVersion >= 350 && isset($xml->question_l10ns->rows->row)) {
if ($iDBVersion >= 400 && isset($xml->question_l10ns->rows->row)) {
foreach ($xml->question_l10ns->rows->row as $row) {
$insertdata = array();
foreach ($row as $key=>$value) {
Expand Down Expand Up @@ -1699,7 +1699,7 @@ function XMLImportSurvey($sFullFilePath, $sXMLdata = null, $sNewSurveyName = nul
}

// Import answer_l10ns
if ($iDBVersion >= 350 && isset($xml->answer_l10ns->rows->row)) {
if ($iDBVersion >= 400 && isset($xml->answer_l10ns->rows->row)) {
foreach ($xml->answer_l10ns->rows->row as $row) {
$insertdata = array();
foreach ($row as $key=>$value) {
Expand Down

0 comments on commit 5324388

Please sign in to comment.