Bug #8447: Undefined values in login tasks
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 3 Aug 2009 17:55:49 +0000 (11:55 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 3 Aug 2009 17:57:07 +0000 (11:57 -0600)
commit567afd9432a3914ceec131f1a31c3b0e7c3809bf
treeee1a97006aafdc01ff7ca49dc1485902b91805a9
parenta87417f52abd83af53fe3c178c502193569ff9e4
Bug #8447: Undefined values in login tasks

I think the issue is that these objects are being serialized between
sessions - thus, when unserialized on the next page, initialize() may
not have been called yet.  So we need to put the initialize() calls in
each function that requires a full IMP environment.
imp/lib/LoginTasks/Task/DeleteAttachmentsMonthly.php
imp/lib/LoginTasks/Task/DeleteSentmailMonthly.php
imp/lib/LoginTasks/Task/PurgeSentmail.php
imp/lib/LoginTasks/Task/PurgeSpam.php
imp/lib/LoginTasks/Task/PurgeTrash.php
imp/lib/LoginTasks/Task/RenameSentmailMonthly.php