diff options
| author | Wim Wisselink <w.g.l.wisselink@gmail.com> | 2024-03-27 11:48:38 +0100 |
|---|---|---|
| committer | Simon Wisselink <s.wisselink@iwink.nl> | 2024-03-27 22:55:23 +0100 |
| commit | 30b1c5bf6dbf48fdd154c2fe878522602532bc47 (patch) | |
| tree | 09caf72231476735953413965be4add97f954b27 | |
| parent | 3f871f9f7ac61c03b04855d7b73c45fb772abf7a (diff) | |
| download | smarty-30b1c5bf6dbf48fdd154c2fe878522602532bc47.tar.gz smarty-30b1c5bf6dbf48fdd154c2fe878522602532bc47.tar.bz2 smarty-30b1c5bf6dbf48fdd154c2fe878522602532bc47.zip | |
Deprecation fix for providing a non string value to ctype_digit (#960)
| -rw-r--r-- | src/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/functions.php b/src/functions.php index 5396ffcb..590789ba 100644 --- a/src/functions.php +++ b/src/functions.php @@ -66,7 +66,7 @@ function smarty_make_timestamp($string) || (interface_exists('DateTimeInterface', false) && $string instanceof DateTimeInterface) ) { return (int)$string->format('U'); // PHP 5.2 BC - } elseif (strlen($string) === 14 && ctype_digit($string)) { + } elseif (strlen($string) === 14 && ctype_digit((string)$string)) { // it is mysql timestamp format of YYYYMMDDHHMMSS? return mktime( substr($string, 8, 2), |
