summaryrefslogtreecommitdiffstatshomepage
path: root/src/SemanticScuttle/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/SemanticScuttle/functions.php')
-rw-r--r--src/SemanticScuttle/functions.php2
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;
}