Skip to content

Commit

Permalink
Fixed issue : LimesurveyApi->getOldResponseTables return timing table
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Dec 15, 2014
1 parent 767a038 commit 8090188
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/libraries/PluginManager/LimesurveyApi.php
Expand Up @@ -266,9 +266,10 @@ public function getOldResponseTables($surveyId)
{
$tables = array();
$base = App()->getDb()->tablePrefix . 'old_survey_' . $surveyId;
$timingbase = App()->getDb()->tablePrefix . 'old_survey_' . $surveyId . '_timings_';
foreach (App()->getDb()->getSchema()->getTableNames() as $table)
{
if (strpos($table, $base) === 0)
if (strpos($table, $base) === 0 && strpos($table, $timingbase)===false)
$tables[] = $table;
}
return $tables;
Expand Down Expand Up @@ -339,4 +340,4 @@ public function getTableSchema($table, $forceRefresh = false)

}

?>
?>

0 comments on commit 8090188

Please sign in to comment.