Fix missing +s
This commit is contained in:
parent
b266fe6e4f
commit
877c85575f
@ -130,7 +130,7 @@ function hesk_getClientIP() {
|
|||||||
|
|
||||||
|
|
||||||
function hesk_isValidIP($ip) {
|
function hesk_isValidIP($ip) {
|
||||||
// Use filter_var for PHP 5.2.0
|
// Use filter_var for PHP 5.2.0+
|
||||||
if (function_exists('filter_var') && filter_var($ip, FILTER_VALIDATE_IP) !== false) {
|
if (function_exists('filter_var') && filter_var($ip, FILTER_VALIDATE_IP) !== false) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -143,7 +143,7 @@ function hesk_isValidIP($ip) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// -> IPv6
|
// -> IPv6
|
||||||
if (preg_match('/^[0-9A-Fa-f\:\.]$/', $ip)) {
|
if (preg_match('/^[0-9A-Fa-f\:\.]+$/', $ip)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -499,7 +499,7 @@ function hesk_getCustomerEmail($can_remember = 0, $field = '')
|
|||||||
} // END hesk_getCustomerEmail()
|
} // END hesk_getCustomerEmail()
|
||||||
|
|
||||||
function hesk_emailCleanup($my_email) {
|
function hesk_emailCleanup($my_email) {
|
||||||
return preg_replace("/(\\\)'/", "'", $my_email);
|
return preg_replace("/(\\\)+'/", "'", $my_email);
|
||||||
} // END hesk_emailCleanup()
|
} // END hesk_emailCleanup()
|
||||||
|
|
||||||
|
|
||||||
@ -1294,7 +1294,7 @@ function hesk_setTimezone() {
|
|||||||
|
|
||||||
// Daylight saving?
|
// Daylight saving?
|
||||||
if ($hesk_settings['daylight'] && date('I')) {
|
if ($hesk_settings['daylight'] && date('I')) {
|
||||||
$seconds = 3600;
|
$seconds += 3600;
|
||||||
$is_daylight = 1;
|
$is_daylight = 1;
|
||||||
} else {
|
} else {
|
||||||
$is_daylight = 0;
|
$is_daylight = 0;
|
||||||
@ -1327,7 +1327,7 @@ function hesk_timeToHHMM($time, $time_format="seconds", $signed=true) {
|
|||||||
$time = abs($time);
|
$time = abs($time);
|
||||||
$sign = "-";
|
$sign = "-";
|
||||||
} else {
|
} else {
|
||||||
$sign = "";
|
$sign = "+";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($time_format == 'minutes') {
|
if ($time_format == 'minutes') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user