aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Updater/VersionCheck.php
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-03-31 08:53:56 +0200
committerjld3103 <jld3103yt@gmail.com>2023-04-05 09:08:56 +0200
commitd9f85220038b2421870a36f9b6a860d6444a988a (patch)
tree10b8cbdb0c0ded7947b50654a4e1d4a30390768a /lib/private/Updater/VersionCheck.php
parent54140dd6bfda81276bd889a9a141d51e328100d1 (diff)
downloadnextcloud-server-d9f85220038b2421870a36f9b6a860d6444a988a.tar.gz
nextcloud-server-d9f85220038b2421870a36f9b6a860d6444a988a.zip
Fix types for reading and writing config values
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'lib/private/Updater/VersionCheck.php')
-rw-r--r--lib/private/Updater/VersionCheck.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Updater/VersionCheck.php b/lib/private/Updater/VersionCheck.php
index 3abbae682b5..156d1c2e02f 100644
--- a/lib/private/Updater/VersionCheck.php
+++ b/lib/private/Updater/VersionCheck.php
@@ -66,10 +66,10 @@ class VersionCheck {
$updaterUrl = $this->config->getSystemValue('updater.server.url', 'https://updates.nextcloud.com/updater_server/');
- $this->config->setAppValue('core', 'lastupdatedat', time());
+ $this->config->setAppValue('core', 'lastupdatedat', (string)time());
if ($this->config->getAppValue('core', 'installedat', '') === '') {
- $this->config->setAppValue('core', 'installedat', microtime(true));
+ $this->config->setAppValue('core', 'installedat', (string)microtime(true));
}
$version = Util::getVersion();