Skip to content

Commit

Permalink
crutch for strange php compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jul 29, 2015
1 parent 68ea22c commit eb75e05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public function setModel ($model) {
}
$this->updateFormName();

if (empty($this->getScenario()) && $model->scenario != $model::SCENARIO_DEFAULT) {
$test = $this->getScenario();
if (empty($test) && $model->scenario != $model::SCENARIO_DEFAULT) {
$this->setScenario($model->scenario);
}

Expand Down

0 comments on commit eb75e05

Please sign in to comment.