Commit c1a193f3 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1296 Fix bug comparing values.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 4f78028c
......@@ -705,7 +705,7 @@ class DeviceManager {
$maxDevice = $this->device->GetSyncFilterType();
// ALL has a value of 0, all limitations have higher integer values, see SYNC_FILTERTYPE_ALL definition
if ($maxDevice !== false && $maxDevice > $maxAllowed) {
if ($maxDevice !== false && $maxDevice < $maxAllowed) {
$maxAllowed = $maxDevice;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment