Commit 13ba214c1c45e5bbf115fd2fcc052f4fc043f059
1 parent
ce5b0b87
Merged in from DEV trunk...
KTC-489 "Upgrade failure (DB error) when upgrading from 3.4.6 and 3.3.7 to 3.5.2c" Fixed.? Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.2c-Release-Branch@8509 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
0 deletions
lib/upgrades/upgrade.inc.php
| @@ -141,6 +141,12 @@ function step_sort_func ($obj1, $obj2) { | @@ -141,6 +141,12 @@ function step_sort_func ($obj1, $obj2) { | ||
| 141 | if ($obj1->getPhase() < $obj2->getPhase()) { | 141 | if ($obj1->getPhase() < $obj2->getPhase()) { |
| 142 | return -1; | 142 | return -1; |
| 143 | } | 143 | } |
| 144 | + if ($obj1->name < $obj2->name) { | ||
| 145 | + return -1; | ||
| 146 | + } | ||
| 147 | + if ($obj1->name > $obj2->name) { | ||
| 148 | + return 1; | ||
| 149 | + } | ||
| 144 | return 0; | 150 | return 0; |
| 145 | } | 151 | } |
| 146 | // }}} | 152 | // }}} |