fixed PHP warning when permission action column is NULL