diff --git a/index.php b/index.php index 5601894..20d8335 100644 --- a/index.php +++ b/index.php @@ -142,11 +142,12 @@ } /* -get the version of the controller (if not already stored in $_SESSION) +get the version of the controller (if not already stored in $_SESSION or when empty) */ -if(!isset($_SESSION['detected_controller_version'])) { +if(!isset($_SESSION['detected_controller_version']) || $_SESSION['detected_controller_version'] === '') { $site_info = $unifidata->stat_sysinfo(); - $_SESSION['detected_controller_version'] = $site_info[0]->version; + $detected_controller_version = $site_info[0]->version; + $_SESSION['detected_controller_version'] = $detected_controller_version; } /* @@ -515,7 +516,7 @@ function to print the output
version detected
-
+