Skip to content

Commit

Permalink
fix database_setup.php syntax error (#283)
Browse files Browse the repository at this point in the history
Fixes: #278
  • Loading branch information
tenzap authored Feb 12, 2022
1 parent 1b134df commit ef752f5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions application/views/main/install/database_setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
<?php endif; ?>
</tr>

<?php if ($this->db->table_exists('user')): ?>
<tr valign="top">
<td>Kalkun DB version</td>
<?php if ($this->db->table_exists('user')): ?>
<td><strong><?php echo $detected_db_version; ?></strong></td>
<?php else: ?>
<td><strong class="orange">Missing</strong><br />Click 'Run Database Setup' below to install it.</td>
Expand All @@ -63,8 +63,8 @@

<tr valign="top">
<td colspan="2"><br />
<?php switch ($type): ?>
<?php case 'install': ?>
<?php switch ($type):
case 'install': ?>
→ Kalkun database is not installed yet. Click 'Run Database Setup' below to install it.
<?php break;?>
<?php case 'upgrade_not_supported': ?>
Expand All @@ -77,10 +77,9 @@
→ Kalkun database is already up-to-date (database schema of version <?php echo $detected_db_version;?> detected).
<?php break; ?>
<?php endswitch; ?>

<?php endif; ?>
</td>
</tr>
<?php endif; ?>
</table>

<?php if ($type === 'install' OR $type === 'upgrade' OR ! $this->Kalkun_model->has_table_pbk()):
Expand Down

0 comments on commit ef752f5

Please sign in to comment.