diff options
author | buckaroo-labs | 2023-12-20 18:12:12 -0800 |
---|---|---|
committer | GitHub | 2023-12-20 18:12:12 -0800 |
commit | fabb46f79a0c315febeb44dd0f60a3e27ba0b7ae (patch) | |
tree | 3e4ac709e090c68b1bfc759f25b420d6878914ab /src/SemanticScuttle | |
parent | ef7991221bf593ae5adc65fc4fa6a389929473da (diff) | |
download | scuttle-fabb46f79a0c315febeb44dd0f60a3e27ba0b7ae.tar.gz scuttle-fabb46f79a0c315febeb44dd0f60a3e27ba0b7ae.zip |
Update functions.php
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r-- | src/SemanticScuttle/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |