Skip to content

Commit

Permalink
Fixed #7985: Database Schema that is more up-to-date than code is rep…
Browse files Browse the repository at this point in the history
…orted as out-of-date.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4355 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed May 18, 2007
1 parent c2d137b commit da26ffc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions login_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: login_page.php,v 1.56 2006-07-24 01:31:28 thraxisp Exp $
# $Id: login_page.php,v 1.57 2007-05-18 02:35:08 vboctor Exp $
# --------------------------------------------------------

# Login page POSTs results to login.php
Expand Down Expand Up @@ -193,9 +193,16 @@

if ( ( 0 < $t_db_version ) &&
( $t_db_version != $t_upgrades_reqd ) ) {
echo '<div class="warning" align="center">';
echo '<p><font color="red"><strong>WARNING:</strong> The database structure may be out of date. Please upgrade <a href="admin/install.php">here</a> before logging in.</font></p>';
echo '</div>';

if ( $t_db_version < $t_upgrades_reqd ) {
echo '<div class="warning" align="center">';
echo '<p><font color="red"><strong>WARNING:</strong> The database structure may be out of date. Please upgrade <a href="admin/install.php">here</a> before logging in.</font></p>';
echo '</div>';
} else {
echo '<div class="warning" align="center">';
echo '<p><font color="red"><strong>WARNING:</strong> The database structure is more up-to-date than the code installed. Please upgrade the code.</font></p>';
echo '</div>';
}
}
}
?>
Expand Down

0 comments on commit da26ffc

Please sign in to comment.