Online == 1){ $send = new CharCashItem_OutputBox(); $send->Owner = $char->DBKey; $send->Kind = $request['Kind']; $send->RecId = trim(strtolower($request['RecId'])); $send->Amount = $request['Amount']; $send->strChargeNo = "*"; $send->Deleted = 0; $send->CreateDate = now(); $send->DeleteDate = now(); $send->GaveCharName = "*"; $send->Confirm = 0; $send->Period = $request['Period']; $send->Price = 0; $send->evPType = $request['evPType']; $send->Comment = $request['Comment']; $send->save(); } } }else{ $send = new CharCashItem_OutputBox(); $send->Owner = $request['Owner']; $send->Kind = $request['Kind']; $send->RecId = trim(strtolower($request['RecId'])); $send->Amount = $request['Amount']; $send->strChargeNo = "*"; $send->Deleted = 0; $send->CreateDate = now(); $send->DeleteDate = now(); $send->GaveCharName = "*"; $send->Confirm = 0; $send->Period = $request['Period']; $send->Price = 0; $send->evPType = $request['evPType']; $send->Comment = $request['Comment']; $send->save(); } } }