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 @@ -93,7 +93,7 @@ public function add($array)
9393 "use_device " => isset ($ array ['use_device ' ]) ? $ array ['use_device ' ] : null ,
9494 "multiple_use " => isset ($ array ['multiple_use ' ]) ? $ array ['multiple_use ' ] : "no " ,
9595 "status " => isset ($ array ['status ' ]) ? $ array ['status ' ] : 0 ,
96- "vendor_id " => isset ($ array ['vendor_id ' ]) ? $ array ['vendor_id ' ] : null ,
96+ "vendor_id " => isset ($ array ['vendor_id ' ]) ? $ array ['vendor_id ' ] : null
9797 ]);
9898 }
9999
@@ -135,8 +135,8 @@ public function update($array, $id)
135135 "use_limit_per_user " => isset ($ array ['user_limit ' ]) ? $ array ['user_limit ' ] : $ coupon ->use_limit_per_user ,
136136 "use_device " => isset ($ array ['use_device ' ]) ? $ array ['use_device ' ] : $ coupon ->use_device ,
137137 "multiple_use " => isset ($ array ['multiple_use ' ]) ? $ array ['multiple_use ' ] : $ coupon ->multiple_use ,
138- "status " => isset ($ array ['status ' ]) ? $ array ['status ' ] : $ coupon ->status
139- "vendor_id " => isset ($ array ['vendor_id ' ]) ? $ array ['vendor_id ' ] : $ coupon ->vendor_id ,
138+ "status " => isset ($ array ['status ' ]) ? $ array ['status ' ] : $ coupon ->status ,
139+ "vendor_id " => isset ($ array ['vendor_id ' ]) ? $ array ['vendor_id ' ] : $ coupon ->vendor_id
140140 ];
141141
142142 $ coupon ->update ($ data );
You can’t perform that action at this time.
0 commit comments