There are a couple of calls that check the contact_attach_number variable to get the number of attachments on the form. Information about files "stored" on a form is available in the $_FILES array. Use that instead and save 2 calls to variable_get().

Comments

Tor Arne Thune’s picture

Status: Active » Fixed

Committed and pushed: b8be89d.

Tor Arne Thune’s picture

Project: » Contact Attach
Version: » 7.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.