Skip to content

Commit

Permalink
Fixed: After deactivate a survey, List Surveys generated db error
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Nov 27, 2015
1 parent 3eddabb commit c191bb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/models/Survey.php
Expand Up @@ -581,8 +581,8 @@ public function getActiveWord()
public function getPartialAnswers()
{
$table = '{{survey_' . $this->sid . '}}';

if (Yii::app()->db->schema->getTable($table) === null)
Yii:: app () ->cache->flush();
if (!Yii::app()->db->schema->getTable($table))
{
return null;
}
Expand All @@ -601,8 +601,8 @@ public function getPartialAnswers()
public function getFullAnswers()
{
$table = '{{survey_' . $this->sid . '}}';

if (Yii::app()->db->schema->getTable($table) === null)
Yii:: app () ->cache->flush();
if (!Yii::app()->db->schema->getTable($table))
{
return null;
}
Expand Down

0 comments on commit c191bb9

Please sign in to comment.