diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index 0b9975c..ab2089d 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -199,7 +199,11 @@ class RechargeController $firstdata = $rechargerow['first_data']; if ($firstrecharge) { - $firstdata = $rechargerow['first_data'] . ',' . $goodsid; + if ($firstdata == NULL || $firstdata == '') { + $firstdata = $goodsid; + } else { + $firstdata = $rechargerow['first_data'] . ',' . $goodsid; + } } else { $diamond_present = 0; }