From 9e59d578b83ddf9fdc3d43c5762b302d209364d8 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 15 Jan 2021 14:52:26 +0100 Subject: [PATCH] Sync fix, icon background --- debian/changelog | 2 +- package.json | 2 +- pages/main/manifest.json | 3 ++- rest/core/account.php | 8 +++----- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3d63c710..fdff3d6b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.407.34) stable; urgency=low +hedera-web (1.407.35) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index 352d5b03..2d5aabe4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "1.407.34", + "version": "1.407.35", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/pages/main/manifest.json b/pages/main/manifest.json index 815513d8..e5720d7e 100644 --- a/pages/main/manifest.json +++ b/pages/main/manifest.json @@ -8,5 +8,6 @@ ], "start_url": "/index.php", "display": "standalone", - "theme_color": "#009688" + "theme_color": "#009688", + "background_color": "#FFFFFF" } diff --git a/rest/core/account.php b/rest/core/account.php index fc4211a9..dc39a4b1 100644 --- a/rest/core/account.php +++ b/rest/core/account.php @@ -2,15 +2,13 @@ class Account { static function trySync($db, $userName, $password = NULL) { - $isSync = $db->getValue( + $sync = $db->getValue( 'SELECT COUNT(*) > 0 FROM account.userSync WHERE name = #', [$userName] ); - if ($isSync) - return; - - self::sync($db, $userName, $password); + if ($sync) + self::sync($db, $userName, $password); } static function sync($db, $userName, $password = NULL) {