// Remove "space" in class Tools

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8884 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2011-09-29 14:42:03 +00:00
parent 38bfdcd843
commit 76fedb28db
+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);
} }
/** /**