Fix mysql

This commit is contained in:
Igor Barkov [iwork]
2018-11-01 19:11:58 +02:00
parent 058a0556d7
commit 5b34e1e706
2 changed files with 17 additions and 20 deletions

View File

@@ -8,10 +8,12 @@
class input
{
public static function get($name) {
return isset($_GET[$name]) ? $_GET[$name] : null;
rtrim($_GET[$name]);
return (isset($_GET[$name]) AND !empty($_GET[$name])) ? $_GET[$name] : null;
}
public static function post($name) {
return isset($_POST[$name]) ? $_POST[$name] : null;
rtrim($_POST[$name]);
return (isset($_POST[$name]) AND !empty($_POST[$name])) ? $_POST[$name] : null;
}
}