fix a big bug that could lead xxx_reg.php doing nothing there.

fix a big bug that could lead xxx_reg.php doing nothing there.

Signed-off-by: Ray Allen <ray@ray-Lenovo-IdeaPad-S400.(none)>