diff options
author | dartcafe <github@dartcafe.de> | 2020-05-13 23:51:48 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-05-13 23:51:48 +0300 |
commit | f4ca68368b15f68d18b138c6f46b195b7ac86f32 (patch) | |
tree | a496655c2cc8ae11cacc37528d205aae0e59fb6f /lib/Db | |
parent | 4cfe462cd988df66e09a4b3c792687f819349229 (diff) |
fix text reordering
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/Option.php | 6 |
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; } } } |