]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Admin area 'Referral levels' refactured:
[mailer.git] / inc / functions.php
index 91ef0668200e4cdceaf4e7e274243fad32a2841c..5d255e12bfe30e6fce3316f314d887e48cb13dac 100644 (file)
@@ -1344,6 +1344,9 @@ function handleExtraValues ($filterFunction, $value, $extraValue) {
 
 // Tries to determine if call-back functions and/or extra values shall be parsed
 function doHandleExtraValues ($filterFunctions, $extraValues, $key, $entries, $userIdColumn, $search, $id = NULL) {
+       // $search shall not be NULL
+       assert(!is_null($search));
+
        // Debug mode enabled?
        if (isDebugModeEnabled()) {
                // Debug message
@@ -1351,7 +1354,7 @@ function doHandleExtraValues ($filterFunctions, $extraValues, $key, $entries, $u
        } // END - if
 
        // Send data through the filter function if found
-       if ($key == $userIdColumn[0]) {
+       if ($key === $userIdColumn[0]) {
                // Is the userid, we have to process it with convertZeroToNull()
                $entries = convertZeroToNull($entries);
        } elseif ((!empty($filterFunctions[$key])) && (isset($extraValues[$key]))) {