Closed (fixed)
Project:
Registration codes
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2010 at 15:49 UTC
Updated:
1 May 2010 at 01:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
hadsie commentedI think this is caused because the code is running this when it saves to the database:
empty($code->maxuses) ? 1 : (int) $code->maxusesempty will return TRUE if maxuses is 0. isset should be used instead. I've attached a patch that fixes the problem and is working for me.
Comment #2
aidanlis commentedThanks for fixing this and sorry for the delay in replying.