Users: Fix saving of libertarianism in political views

Closes #101
This commit is contained in:
Maxim Leshchenko 2021-12-05 01:16:12 +02:00
parent 8fd09a7846
commit 6f26a870fd
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -142,7 +142,7 @@ final class UserPresenter extends OpenVKPresenter
if ($this->postParam("marialstatus") <= 8 && $this->postParam("marialstatus") >= 0) if ($this->postParam("marialstatus") <= 8 && $this->postParam("marialstatus") >= 0)
$user->setMarital_Status($this->postParam("marialstatus")); $user->setMarital_Status($this->postParam("marialstatus"));
if ($this->postParam("politViews") <= 8 && $this->postParam("politViews") >= 0) if ($this->postParam("politViews") <= 9 && $this->postParam("politViews") >= 0)
$user->setPolit_Views($this->postParam("politViews")); $user->setPolit_Views($this->postParam("politViews"));
if ($this->postParam("gender") <= 1 && $this->postParam("gender") >= 0) if ($this->postParam("gender") <= 1 && $this->postParam("gender") >= 0)