diff --git a/debian/changelog b/debian/changelog index e037644d..d5b895d2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.406.56) stable; urgency=low +hedera-web (1.406.57) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index d27b3d2d..1c5bd75d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "1.406.56", + "version": "1.406.57", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/web/service.php b/web/service.php index a9e45eb7..0aadb147 100644 --- a/web/service.php +++ b/web/service.php @@ -188,10 +188,10 @@ abstract class Service { $user = $db->getValue('SELECT guestUser FROM config'); $anonymousUser = TRUE; } - - $db->query('CALL account.userLoginWithName(#)', [$user]); } + $db->query('CALL account.userLoginWithName(#)', [$user]); + $userChanged = !$anonymousUser &&(empty($_SESSION['user']) || $_SESSION['user'] != $user);