From 9bd6d1afe6a83325d486dc2ecd195949a5ad49a8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 12 Jan 2016 15:54:19 +0200 Subject: [PATCH] Fixed problem updating cache when upgrading --- app/Http/Middleware/StartupCheck.php | 7 ++++--- app/Http/routes.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Http/Middleware/StartupCheck.php b/app/Http/Middleware/StartupCheck.php index 5e120327b80f..1c014e8d1315 100644 --- a/app/Http/Middleware/StartupCheck.php +++ b/app/Http/Middleware/StartupCheck.php @@ -154,13 +154,14 @@ class StartupCheck } foreach ($cachedTables as $name => $class) { if (Input::has('clear_cache') || !Cache::has($name)) { + if ( ! class_exists($class)) { + continue; + } if ($name == 'paymentTerms') { $orderBy = 'num_days'; - } - else if ($name == 'fonts') { + } elseif ($name == 'fonts') { $orderBy = 'sort_order'; } elseif (in_array($name, ['currencies', 'industries', 'languages', 'countries'])) { - $orderBy = 'name'; } else { $orderBy = 'id'; diff --git a/app/Http/routes.php b/app/Http/routes.php index 8f6c718fe490..11cb1f1de119 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -437,7 +437,7 @@ if (!defined('CONTACT_EMAIL')) { define('NINJA_GATEWAY_CONFIG', 'NINJA_GATEWAY_CONFIG'); define('NINJA_WEB_URL', 'https://www.invoiceninja.com'); define('NINJA_APP_URL', 'https://app.invoiceninja.com'); - define('NINJA_VERSION', '2.4.9'); + define('NINJA_VERSION', '2.4.9.1'); define('NINJA_DATE', '2000-01-01'); define('SOCIAL_LINK_FACEBOOK', 'https://www.facebook.com/invoiceninja');