@@ 519-521 (lines=3) @@ | ||
516 | $lookupValue = strtolower($lookupValue); |
|
517 | ||
518 | // Lookup_value type has to be number, text, or logical values |
|
519 | if ((!is_numeric($lookupValue)) && (!is_string($lookupValue)) && (!is_bool($lookupValue))) { |
|
520 | return Functions::NA(); |
|
521 | } |
|
522 | ||
523 | // Match_type is 0, 1 or -1 |
|
524 | if (($matchType !== 0) && ($matchType !== -1) && ($matchType !== 1)) { |
|
@@ 537-540 (lines=4) @@ | ||
534 | // Lookup_array should contain only number, text, or logical values, or empty (null) cells |
|
535 | foreach ($lookupArray as $i => $lookupArrayValue) { |
|
536 | // check the type of the value |
|
537 | if ((!is_numeric($lookupArrayValue)) && (!is_string($lookupArrayValue)) && |
|
538 | (!is_bool($lookupArrayValue)) && (!is_null($lookupArrayValue)) |
|
539 | ) { |
|
540 | return Functions::NA(); |
|
541 | } |
|
542 | // Convert strings to lowercase for case-insensitive testing |
|
543 | if (is_string($lookupArrayValue)) { |