diff options
| author | Wim Wisselink <w.g.l.wisselink@gmail.com> | 2024-03-27 11:48:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-27 11:48:38 +0100 |
| commit | a58d869502e270bc7d02d245f5e2022937a398aa (patch) | |
| tree | f652206c1155dc6f68ffc27c3356300ddfd4f14e /src | |
| parent | 28e11b114b22d2ebe9d84a8cdc3e97dae1893a3f (diff) | |
| download | smarty-a58d869502e270bc7d02d245f5e2022937a398aa.tar.gz smarty-a58d869502e270bc7d02d245f5e2022937a398aa.tar.bz2 smarty-a58d869502e270bc7d02d245f5e2022937a398aa.zip | |
Deprecation fix for providing a non string value to ctype_digit (#960)
Diffstat (limited to 'src')
| -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), |
