From fabb46f79a0c315febeb44dd0f60a3e27ba0b7ae Mon Sep 17 00:00:00 2001 From: buckaroo-labs Date: Wed, 20 Dec 2023 18:12:12 -0800 Subject: Update functions.php --- src/SemanticScuttle/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SemanticScuttle/functions.php b/src/SemanticScuttle/functions.php index 9bd5553..facb72e 100644 --- a/src/SemanticScuttle/functions.php +++ b/src/SemanticScuttle/functions.php @@ -168,7 +168,7 @@ function shortenString($string, $maxSize=75) { $output = ''; if(strlen($string) > $maxSize) { //2023-12-20 add ROUND() function to avoid 'Deprecated' warning - $output = substr($string, 0, $maxSize/2).'...'.substr($string, -round($maxSize/2)); + $output = substr($string, 0, $maxSize/2).'...'.substr($string, -round((float)$maxSize/2)); } else { $output = $string; } -- cgit v1.2.3-54-g00ecf