So the script does not work, in either form, right? Hmm, let me check that out again.
One question, you are using the Historical records, right? So there are active and inactive warnings in your log. The script is trying to find inactive warnings (i.e. warnings which have matured). It then removes 1 from the member's warnings number. It does not remove the warnings themselves. Did you check if the warnings number of the members are reduced?
Do you also want the script to remove those warnings from your database?
|