We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cea893f commit 0cb2d7cCopy full SHA for 0cb2d7c
framework/db/schema/CDbCriteria.php
@@ -168,18 +168,21 @@ public function __wakeup()
168
{
169
$map=array();
170
$params=array();
171
- foreach($this->params as $name=>$value)
+ if(is_array($this->params))
172
173
- if(strpos($name,self::PARAM_PREFIX)===0)
+ foreach($this->params as $name=>$value)
174
175
- $newName=self::PARAM_PREFIX.self::$paramCount++;
176
- $map[$name]=$newName;
177
- }
178
- else
179
- {
180
- $newName=$name;
+ if(strpos($name,self::PARAM_PREFIX)===0)
+ {
+ $newName=self::PARAM_PREFIX.self::$paramCount++;
+ $map[$name]=$newName;
+ }
+ else
181
182
+ $newName=$name;
183
184
+ $params[$newName]=$value;
185
}
- $params[$newName]=$value;
186
187
if (!empty($map))
188
0 commit comments