projects
/
racktables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0ce806
)
r4293 getDBUpgradePath(): fix to return correct result on equal arguments
author
Denis Ovsienko
<infrastation@yandex.ru>
Sat, 5 Mar 2011 14:29:12 +0000
(14:29 +0000)
committer
Denis Ovsienko
<infrastation@yandex.ru>
Sat, 5 Mar 2011 14:29:12 +0000
(14:29 +0000)
wwwroot/upgrade.php
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/upgrade.php
b/wwwroot/upgrade.php
index 6c99a17ed4ccabc32c8f06e4a8b72cdf5fd00a98..b7e4f1cbf57b6075891f98754f17c8d7dd7cbd5c 100644
(file)
--- a/
wwwroot/upgrade.php
+++ b/
wwwroot/upgrade.php
@@
-111,6
+111,9
@@
function getDBUpgradePath ($v1, $v2)
return NULL;
$skip = TRUE;
$path = NULL;
+ // foreach() below cannot handle this specific case
+ if ($v1 == $v2)
+ return array();
// Now collect all versions > $v1 and <= $v2
foreach ($versionhistory as $v)
{