Consistently use "null" over "NULL"
This commit is contained in:
3 files changed
+7
-6
No files matched your search
+2
-2
@@ -129,7 +129,7 @@ public static function get_http_input_text(string $var_name, string $default = "
|
||||
else $output = self::sanitize_text($default);
|
||||
|
||||
if (!empty($allowed) and !\in_array($output, $allowed, true)) {
|
||||
Throw new MDpageParameterNotFromListException("Parameter `{$var_name}` must be any of the allowed values: '" . implode('\', \'', $allowed) . "'");
|
||||
throw new MDpageParameterNotFromListException("Parameter `{$var_name}` must be any of the allowed values: '" . implode('\', \'', $allowed) . "'");
|
||||
}
|
||||
|
||||
return $output;
|
||||
@@ -154,7 +154,7 @@ public static function get_http_post_text(string $var_name, string $default = ""
|
||||
else $output = self::sanitize_text($default);
|
||||
|
||||
if (!empty($allowed) and !\in_array($output, $allowed, true)) {
|
||||
Throw new MDpageParameterNotFromListException("Parameter `{$var_name}` must be any of the allowed values: '" . implode('\', \'', $allowed) . "'");
|
||||
throw new MDpageParameterNotFromListException("Parameter `{$var_name}` must be any of the allowed values: '" . implode('\', \'', $allowed) . "'");
|
||||
}
|
||||
|
||||
return $output;
|
||||
|
||||
Reference in new issue
Block a user