Consistently use "null" over "NULL"

This commit is contained in:
jrenslin committed 2021-02-06 19:55:54 +01:00
1 parent 605fd88b6e
commit 217e1fc86b
3 files changed
+7 -6

No files matched your search

+2 -2
View File
@@ -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;