From 732e438473f070833dab5bb85e39c0e42fc8f042 Mon Sep 17 00:00:00 2001
From: resurtm <resurtm@gmail.com>
Date: Tue, 18 Jun 2013 23:02:21 +0600
Subject: [PATCH] Fixed typo in the \yii\db\ActiveRecord::isOperationAtomic()
 method.

---
 framework/yii/db/ActiveRecord.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/yii/db/ActiveRecord.php b/framework/yii/db/ActiveRecord.php
index 7aab077..234c79b 100644
--- a/framework/yii/db/ActiveRecord.php
+++ b/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;