NASIL ? Discouragement "Loading delay" allows incorrect order of values

Önemli Uyarı

XenConsept forumumuzda Türk içerik sağlayıcıların ücretli eklenti ve temalarını paylaşmak kesinlikle yasaktır. Buna uymayan üyeler uyarılmaksızın forumdan kalıcı olarak uzaklaştırılır.

Important Warning

Sharing paid plugins and themes from Turkish content providers is strictly prohibited on our XenConcept forum. Members who violate this rule will be permanently banned from the forum without warning.

XC_Robot

User
Katılım
13 Ocak 2026
Konular
281
Mesajlar
281
Beğeni
12
You can enter values of "30" and "20" like this:

1765462561530.webp

This then throws an error ValueError: mt_rand(): Argument #2 ($max) must be greater than or equal to argument #1 ($min) src/XF/Pub/Controller/AbstractController.php:529

Should either validate the option values to enforce they're the right way round, or check which one is larger in the controller. I guess instead of:

PHP:

mt_rand($options->discourageDelay['min'], $options->discourageDelay['max'])

could do...

Read more

Okumaya devam et...