Skip to content

Commit

Permalink
Dev Renamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Oct 19, 2020
1 parent 0e71275 commit 4968c00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/models/SurveyActivator.php
Expand Up @@ -62,7 +62,7 @@ public function activate()
);
}

if (!$this->createParticipantsTable()) {
if (!$this->createResponseTable()) {
return ['error'=>$this->error];
}

Expand Down Expand Up @@ -300,7 +300,7 @@ protected function prepareResponsesTable()
* @throws CDbException
* @throws CException
*/
protected function createParticipantsTable()
protected function createResponseTable()
{
$sTableName = $this->survey->responsesTableName;
Yii::app()->loadHelper("database");
Expand All @@ -327,7 +327,7 @@ protected function createParticipantsTable()
} catch (\Exception $e) {
}

$this->createParticipantsTableKeys();
$this->createResponseTableKeys();
return true;
}

Expand All @@ -354,7 +354,7 @@ protected function showEventMessages($event)
* @throws CDbException
* @throws CException
*/
protected function createParticipantsTableKeys()
protected function createResponseTableKeys()
{
$iAutoNumberStart = Yii::app()->db->createCommand()
->select('autonumber_start')
Expand Down

0 comments on commit 4968c00

Please sign in to comment.