diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-10-16 12:20:16 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-10-16 12:22:24 +0200 |
commit | 87b45e3f2436d295c39835785dbd951827a95cf0 (patch) | |
tree | 64647e9e50ff8c89142b2b8f385cc4f940b1ea24 | |
parent | 136e84d27a60a5f813ea0d4154735159ccd89ee9 (diff) |
Fix database upgrade success message
The function actually returns something that's not an int. Exceptions
are caught so at this point it's fine to just output without a check.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | application/controllers/Tools.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/application/controllers/Tools.php b/application/controllers/Tools.php index bb481db80..15f35cc9e 100644 --- a/application/controllers/Tools.php +++ b/application/controllers/Tools.php @@ -33,11 +33,10 @@ class Tools extends MY_Controller { if ($upgraded === true) { echo "Already at latest database version. No upgrade performed\n"; + return; } - if (is_int($upgraded)) { - echo "Database upgraded sucessfully to version: $upgraded\n"; - } + echo "Database upgraded sucessfully to version: $upgraded\n"; } function drop_all_tables() |