From 87b45e3f2436d295c39835785dbd951827a95cf0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 16 Oct 2017 12:20:16 +0200 Subject: 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 --- application/controllers/Tools.php | 5 ++--- 1 file 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() -- cgit v1.2.3-24-g4f1b