From 7034de015d49df2c14e957a5757945620c40615d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Sun, 11 Jun 2017 16:42:44 +0200 Subject: [PATCH] Round priority to one decimal place --- wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php b/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php index a2d48ce3df..5b4dd2f761 100755 --- a/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/SitemapEditForm.class.php @@ -118,7 +118,7 @@ class SitemapEditForm extends AbstractForm { public function readFormParameters() { parent::readFormParameters(); - if (isset($_POST['priority'])) $this->priority = floatval($_POST['priority']); + if (isset($_POST['priority'])) $this->priority = round(floatval($_POST['priority']), 1); if (isset($_POST['changeFreq'])) $this->changeFreq = $_POST['changeFreq']; if (isset($_POST['rebuildTime'])) $this->rebuildTime = intval($_POST['rebuildTime']); $this->isDisabled = (isset($_POST['isDisabled'])) ? 1 : 0; -- 2.20.1