From 5e62551cd31137fc507e4061090a06003843a6c7 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 27 Feb 2007 23:49:41 +0000 Subject: typo --- framework/Data/ActiveRecord/TActiveRecord.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'framework') diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php index 8c789ec2..0eb6d51d 100644 --- a/framework/Data/ActiveRecord/TActiveRecord.php +++ b/framework/Data/ActiveRecord/TActiveRecord.php @@ -147,17 +147,17 @@ abstract class TActiveRecord extends TComponent */ public static function finder($className=__CLASS__) { - if($class==='TActiveRecord') + if($className==='TActiveRecord') throw new TActiveRecordException('ar_invalid_finder_class_name'); static $finders = array(); - if(!isset($finders[$class])) + if(!isset($finders[$className])) { - $f = Prado::createComponent($class); + $f = Prado::createComponent($className); $f->_readOnly=true; - $finders[$class]=$f; + $finders[$className]=$f; } - return $finders[$class]; + return $finders[$className]; } public static function getRecordFinder($className) -- cgit v1.2.3