summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar buckaroo-labs2023-12-20 18:12:12 -0800
committerGravatar GitHub2023-12-20 18:12:12 -0800
commitfabb46f79a0c315febeb44dd0f60a3e27ba0b7ae (patch)
tree3e4ac709e090c68b1bfc759f25b420d6878914ab
parentef7991221bf593ae5adc65fc4fa6a389929473da (diff)
downloadscuttle-fabb46f79a0c315febeb44dd0f60a3e27ba0b7ae.tar.gz
scuttle-fabb46f79a0c315febeb44dd0f60a3e27ba0b7ae.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 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;
}