Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Db
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-05-13 23:51:48 +0300
committerdartcafe <github@dartcafe.de>2020-05-13 23:51:48 +0300
commitf4ca68368b15f68d18b138c6f46b195b7ac86f32 (patch)
treea496655c2cc8ae11cacc37528d205aae0e59fb6f /lib/Db
parent4cfe462cd988df66e09a4b3c792687f819349229 (diff)
fix text reordering
Diffstat (limited to 'lib/Db')
-rw-r--r--lib/Db/Option.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Db/Option.php b/lib/Db/Option.php
index 70c63d4e..72d1bdf2 100644
--- a/lib/Db/Option.php
+++ b/lib/Db/Option.php
@@ -92,10 +92,10 @@ class Option extends Entity implements JsonSerializable {
*/
// TODO: remove by time
private function setOrder($timestamp, $order) {
- if ($timestamp === 0) {
- return $order;
- } else {
+ if ($timestamp) {
return $timestamp;
+ } else {
+ return $order;
}
}
}