Ignore:
Timestamp:
2014/06/04 11:53:07 (10 years ago)
Author:
shutta
Message:

#2386 PHP 警告撲滅 for 2.13.3
「Warning (E_WARNING): Invalid argument supplied for foreach()」と警告が出ていたのを修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r23513 r23519  
    869869                foreach ($arrAllShipmentItem[$shipping_index] as $key => $arrItem) { 
    870870                    $i = 0; 
    871                     foreach ($arrItem as $item) { 
    872                         $arrShipmentValues[$shipping_index][$i][str_replace('shipment_', '', $key)] = $item; 
    873                         $i++; 
     871                    if (is_array($arrItem)) { 
     872                        foreach ($arrItem as $item) { 
     873                            $arrShipmentValues[$shipping_index][$i][str_replace('shipment_', '', $key)] = $item; 
     874                            $i++; 
     875                        } 
    874876                    } 
    875877                } 
Note: See TracChangeset for help on using the changeset viewer.