|
楼主 |
发表于 2011-6-22 20:57:52
|
显示全部楼层
找到问题了,是这个位置被赋false。没法insert。把这个判断条件去掉就OK了,奇怪了!?
// --------------------------------------------------------------------
// Validate the product name. It can only be alpha-numeric, dashes, underscores, colons or periods.
// Note: These can be user-specified by setting the $this->product_name_rules variable.
// if ( ! preg_match("/^[".$this->product_name_rules."]+$/i", $items['name']))
// {
// log_message('error', 'An invalid name was submitted as the product name: '.$items['name'].' The name can only contain alpha-numeric characters, dashes, underscores, colons, and spaces');
// return FALSE;
// }
|
|