re-fix xoopscube/legacy#24

fix  syntax error
ref. https://www.facebook.com/groups/XoopsX/permalink/558969377464266/