问题描述
收到通知:
尝试访问 bool 类型值的数组偏移量 uc_quote_uc_order()(第 311 行。
/**
* Implements hook_uc_order().
*/
function uc_quote_uc_order($op,$order,$arg2) {
switch ($op) {
case 'save':
if (isset($order->quote['method'])) {
db_merge('uc_order_quotes')
->key(array('order_id' => $order->order_id))
->fields(array(
'method' => $order->quote['method'],'accessorials' => $order->quote['accessorials'],'rate' => $order->quote['rate'],))
->execute();
}
break;
case 'load':
$quote = db_query("SELECT method,accessorials,rate FROM {uc_order_quotes} WHERE
order_id = :id",array(':id' => $order->order_id))->fetchAssoc();
$order->quote = $quote;
311>> $order->quote['accessorials'] = strval($quote['accessorials']); 休息;
case 'delete':
db_delete('uc_order_quotes')
->condition('order_id',$order->order_id)
->execute();
break;
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)