Skip to content

Commit

Permalink
Fixed issue #7071: Survey timing tables are archived and offered for …
Browse files Browse the repository at this point in the history
…deletion when visiting the integrity check
  • Loading branch information
c-schmitz committed Dec 12, 2012
1 parent f06e23d commit ae53492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/checkintegrity.php
Expand Up @@ -359,7 +359,8 @@ protected function _checkintegrity()
{
$sTableName = substr(reset($aRow), strlen($sDBPrefix));
if ($sTableName == 'survey_permissions' || $sTableName == 'survey_links' || $sTableName == 'survey_url_parameters') continue;
$iSurveyID = substr($sTableName, strpos($sTableName, '_') + 1);
$aTableName=explode('_',$sTableName);
$iSurveyID = $aTableName[1];
if (false == array_search($iSurveyID, $sids)) {
$sDate = date('YmdHis') . rand(1, 1000);
$sOldTable = "survey_{$iSurveyID}";
Expand Down

0 comments on commit ae53492

Please sign in to comment.