Fix invalid argument() when saving an order

This commit is contained in:
Matt 2012-11-27 12:27:09 -05:00
parent cfa59c23aa
commit f6e0a96a12
1 changed files with 2 additions and 2 deletions

View File

@ -809,8 +809,8 @@ function woocommerce_process_shop_order_meta( $post_id, $post ) {
}
// Save meta
$meta_keys = isset( $_POST['meta_key'] ) ? $_POST['meta_key'] : '';
$meta_values = isset( $_POST['meta_value'] ) ? $_POST['meta_value'] : '';
$meta_keys = isset( $_POST['meta_key'] ) ? $_POST['meta_key'] : array();
$meta_values = isset( $_POST['meta_value'] ) ? $_POST['meta_value'] : array();
foreach ( $meta_keys as $id => $value ) {
$wpdb->update(