mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed problem with update check: cannot be disabled because variable was never checked :-O
This commit is contained in:
parent
6b3019ec61
commit
b6c8f6c2e8
@ -23,7 +23,7 @@
|
|||||||
* Pandora build version and version
|
* Pandora build version and version
|
||||||
*/
|
*/
|
||||||
$build_version = 'PC140924';
|
$build_version = 'PC140924';
|
||||||
$pandora_version = 'v5.1';
|
$pandora_version = 'v5.1SP1';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
$script_tz = @date_default_timezone_get();
|
$script_tz = @date_default_timezone_get();
|
||||||
|
19
pandora_console/index.php
Normal file → Executable file
19
pandora_console/index.php
Normal file → Executable file
@ -365,15 +365,18 @@ if ($process_login) {
|
|||||||
|
|
||||||
require_once("include/functions_update_manager.php");
|
require_once("include/functions_update_manager.php");
|
||||||
enterprise_include_once("include/functions_update_manager.php");
|
enterprise_include_once("include/functions_update_manager.php");
|
||||||
|
|
||||||
if (enterprise_installed()) {
|
if ($config["autoupdate"] == 1) {
|
||||||
$result = update_manager_check_online_enterprise_packages_available();
|
if (enterprise_installed()) {
|
||||||
|
$result = update_manager_check_online_enterprise_packages_available();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$result = update_manager_check_online_free_packages_available();
|
||||||
|
}
|
||||||
|
if ($result)
|
||||||
|
$_SESSION['new_update'] = 'new';
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
$result = update_manager_check_online_free_packages_available();
|
|
||||||
}
|
|
||||||
if ($result)
|
|
||||||
$_SESSION['new_update'] = 'new';
|
|
||||||
|
|
||||||
//Set the initial global counter for chat.
|
//Set the initial global counter for chat.
|
||||||
users_get_last_global_counter('session');
|
users_get_last_global_counter('session');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user