PHP Error
描述
array_merge() [<a href=‘function.array-merge’>function.array-merge</a>]: Argument #1 is not an array
源文件
E:\wamp\www\lib\yii2\framework\db\CDbCommand.php(337)
00325: * @param string method of PDOStatement to be called
00326: * @param mixed the first parameter to be passed to the method
00327: * @param array input parameters (name=>value) for the SQL execution. This is an alternative
00328: * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing
00329: * them in this way can improve the performance. Note that you pass parameters in this way,
00330: * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.
00331: * binding methods and the input parameters this way can improve the performance.
00332: * This parameter has been available since version 1.0.10.
00333: * @return mixed the method execution result
00334: */
00335: private function queryInternal($method,$mode,$params=array())
00336: {
00337: if($this->_connection->enableParamLogging && ($pars=array_merge($this->_params,$params))!==array())