MDL-37943 upgrade: logic error in upgrade_plugins_blocks.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 8 Feb 2013 12:40:49 +0000 (12:40 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 8 Feb 2013 12:40:49 +0000 (12:40 +0000)
commit1fa845437c268401aa45066c58a426d3e2784ee4
tree282ba1891e84ace22d1d086a4d0bc31c08d2ea72
parent6319737865e0e22eca1a8f203d999ba932be1b86
MDL-37943 upgrade: logic error in upgrade_plugins_blocks.

Derek Woolhead tracked down the problem and what needed to be fixed. I
just made the patch.

The problem was that if $plugin->cron had changed in version.php, then
the version number in the database could end up wrong after the upgrade,
and so the upgrade would immediately run a second time.
lib/upgradelib.php