Git commits in Moodle 2.0.6 by Gerwood Stewart
commit 9fee0258a4e1c091e6aacc7cff6e6f27fd4cb9aa
Author: Gerwood Stewart <gerwood@gmail.com>
Date: Mon, 16 May 2011 09:57:33 +0800
Tag: v2.0.6
MDL-27521 Updates the can_finalize and can_unfinalize methods to deal with passing a submission object that isn't one (in this case is a Boolean value). This will result in both methods now returning false. Kick on effect is that it corrects the bug described in MDL-27521 by removing the button if it isn't possible to finalize the submission.