]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
Do better call debug_report_bug() if something bad happened
[mailer.git] / inc / filters.php
index 57ebf505ba3d46276105a947fc2cc74a586d9191..34574e46a599b1ca839a33a326f3610cc14ee2f8 100644 (file)
@@ -180,7 +180,9 @@ function FILTER_AUTO_ACTIVATE_EXTENSION ($data) {
 // Filter for solving task given task
 function FILTER_SOLVE_TASK ($data) {
        // Don't solve anything if no admin!
-       if (!isAdmin()) return $data;
+       if (!isAdmin()) {
+               return $data;
+       } // END - if
 
        // Is this a direct task id or array element task_id is found?
        if (is_int($data)) {
@@ -828,7 +830,7 @@ function FILTER_INIT_RANDOM_NUMBER () {
        // Is the extension ext-sql_patches installed and at least 0.3.6?
        if ((isExtensionInstalledAndNewer('sql_patches', '0.3.6')) && (isExtensionInstalledAndNewer('other', '0.2.5'))) {
                // Generate random number
-               setConfigEntry('RAND_NUMBER', generateRandomCode(10, mt_rand(10000, 32766), getMemberId(), ''));
+               setConfigEntry('RAND_NUMBER', generateRandomCode(10, mt_rand(10000, 99999), getMemberId(), ''));
        } else {
                // Generate *WEAK* code
                setConfigEntry('RAND_NUMBER', mt_rand(1000000, 9999999));