Browse Source

Fixed typo in the \yii\db\ActiveRecord::isOperationAtomic() method.

tags/2.0.0-beta
resurtm 12 years ago
parent
commit
732e438473
  1. 2
      framework/yii/db/ActiveRecord.php

2
framework/yii/db/ActiveRecord.php

@ -1439,7 +1439,7 @@ class ActiveRecord extends Model
{
$scenario = $this->getScenario();
$scenarios = $this->scenarios();
if (isset($scenarios[$scenario], $scenario[$scenario]['atomic']) && is_array($scenarios[$scenario]['atomic'])) {
if (isset($scenarios[$scenario], $scenarios[$scenario]['atomic']) && is_array($scenarios[$scenario]['atomic'])) {
return in_array($operation, $scenarios[$scenario]['atomic']);
} else {
return false;

Loading…
Cancel
Save