Skip to content

Commit

Permalink
Dev: Make sure self::$survey is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 22, 2017
1 parent 99a2919 commit a251ed8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/models/SurveyTimingDynamic.php
Expand Up @@ -75,6 +75,9 @@ public function relations()
/** @inheritdoc */
public function tableName()
{
if (empty(self::$survey)) {
self::model();
}
return self::$survey->timingsTableName;
}

Expand Down

0 comments on commit a251ed8

Please sign in to comment.