// Remove "space" in class Tools

This commit is contained in:
mDeflotte
2011-09-29 14:42:03 +00:00
parent 7a487c3f01
commit 9eaf05d458
+3 -3
View File
@@ -269,7 +269,7 @@ class ToolsCore
*/ */
public static function getValue($key, $defaultValue = false) public static function getValue($key, $defaultValue = false)
{ {
if (!isset($key) OR empty($key) OR !is_string($key)) if (!isset($key) OR empty($key) OR !is_string($key))
return false; return false;
$ret = (isset($_POST[$key]) ? $_POST[$key] : (isset($_GET[$key]) ? $_GET[$key] : $defaultValue)); $ret = (isset($_POST[$key]) ? $_POST[$key] : (isset($_GET[$key]) ? $_GET[$key] : $defaultValue));
@@ -280,9 +280,9 @@ class ToolsCore
public static function getIsset($key) public static function getIsset($key)
{ {
if (!isset($key) OR empty($key) OR !is_string($key)) if (!isset($key) OR empty($key) OR !is_string($key))
return false; return false;
return isset($_POST[$key]) ? true : (isset($_GET[$key]) ? true : false); return isset($_POST[$key]) ? true : (isset($_GET[$key]) ? true : false);
} }
/** /**