diff options
author | dartcafe <github@dartcafe.de> | 2021-02-21 18:59:36 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-02-21 18:59:36 +0300 |
commit | 91f6c49f73110248f8679f2197f23153a6c6b3a6 (patch) | |
tree | ce0cd036cb3b7f5c07e963780c6baa51238e497e /lib | |
parent | 59e96f17d92c24716563d0954481e2b4f110c46e (diff) |
fix option order
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Db/Option.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/Option.php b/lib/Db/Option.php index e6aa0a86..b22bd792 100644 --- a/lib/Db/Option.php +++ b/lib/Db/Option.php @@ -79,7 +79,7 @@ class Option extends Entity implements JsonSerializable { 'pollId' => intval($this->pollId), 'pollOptionText' => htmlspecialchars_decode($this->pollOptionText), 'timestamp' => intval($timestamp), - 'order' => $timestamp ? $timestamp : $order, + 'order' => intval($timestamp ? $timestamp : $this->order), 'confirmed' => intval($this->confirmed), 'duration' => intval($this->duration), 'no' => 0, |