no transfer of null to parameter of type string
- Fixes: Passing null to parameter #1 ($string) of type string is deprecated
This commit is contained in:
parent
48c2759d8a
commit
db719245af
@ -28,16 +28,15 @@
|
||||
/**
|
||||
* test if a value is a valid e-mail address
|
||||
*
|
||||
* @param string $value
|
||||
* the value being tested
|
||||
* @param boolean $empty
|
||||
* if field can be empty
|
||||
* @param
|
||||
* array params validate parameter values
|
||||
* @param
|
||||
* array formvars form var values
|
||||
* @param string $value the value being tested
|
||||
* @param boolean $empty if field can be empty
|
||||
* @param array params validate parameter values
|
||||
* @param array formvars form var values
|
||||
*/
|
||||
function smarty_validate_criteria_isEmail($value, $empty, &$params, &$formvars) {
|
||||
if (empty($value))
|
||||
return $empty;
|
||||
|
||||
if (strlen($value) == 0)
|
||||
return $empty;
|
||||
|
||||
|
@ -35,6 +35,9 @@
|
||||
* @param array formvars form var values
|
||||
*/
|
||||
function smarty_validate_criteria_isURL($value, $empty, &$params, &$formvars) {
|
||||
if (empty($value))
|
||||
return $empty;
|
||||
|
||||
if(strlen($value) == 0)
|
||||
return $empty;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user