UserClassApproveP in the ecommerce package.
Another option is to set a default in that code
by changing the if to this:
"if { [ad_parameter -package_id [ec_id] UserClassApproveP ecommerce 0] } {