File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -831,7 +831,7 @@ protected function _insert($data)
831831 $ last_ai = 0 ;
832832 foreach ($ data ['properties ' ] as $ field => $ property ) {
833833 if (is_array ($ property ) && array_key_exists ('auto_increment ' , $ property ) && TRUE === $ property ['auto_increment ' ]) {
834- for ($ insert as $ lid => $ array_data ) {
834+ foreach ($ insert as $ lid => $ array_data ) {
835835 $ last_ai = max ($ insert [$ lid ][$ field ], $ last_ai );
836836 }
837837 break ;
@@ -949,7 +949,7 @@ protected function _replace($data)
949949 $ last_ai = 0 ;
950950 foreach ($ data ['properties ' ] as $ field => $ property ) {
951951 if (is_array ($ property ) && array_key_exists ('auto_increment ' , $ property ) && TRUE === $ property ['auto_increment ' ]) {
952- for ($ insert as $ lid => $ array_data ) {
952+ foreach ($ insert as $ lid => $ array_data ) {
953953 $ last_ai = max ($ insert [$ lid ][$ field ], $ last_ai );
954954 }
955955 break ;
@@ -1088,7 +1088,7 @@ protected function _update($data)
10881088 $ last_ai = 0 ;
10891089 foreach ($ data ['properties ' ] as $ field => $ property ) {
10901090 if (is_array ($ property ) && array_key_exists ('auto_increment ' , $ property ) && TRUE === $ property ['auto_increment ' ]) {
1091- for ($ data ['data ' ] as $ lid => $ array_data ) {
1091+ foreach ($ data ['data ' ] as $ lid => $ array_data ) {
10921092 $ last_ai = max ($ data ['data ' ][$ lid ][$ field ], $ last_ai );
10931093 }
10941094 break ;
You can’t perform that action at this time.
0 commit comments