summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar buckaroo-labs2023-12-20 18:14:22 -0800
committerGravatar GitHub2023-12-20 18:14:22 -0800
commit60fd8f4098bc0644ea83212696dd3c39c159175a (patch)
treecc31ca2da721fc8ed7c57248e90dfe4e862c55f1
parentfabb46f79a0c315febeb44dd0f60a3e27ba0b7ae (diff)
downloadscuttle-60fd8f4098bc0644ea83212696dd3c39c159175a.tar.gz
scuttle-60fd8f4098bc0644ea83212696dd3c39c159175a.zip
Update 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 facb72e..517023f 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((float)$maxSize/2));
+ $output = substr($string, 0, round($maxSize/2)).'...'.substr($string, -round((float)$maxSize/2));
} else {
$output = $string;
}