summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r--lib/ui.lib.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php
index 859f90f3..efdaa736 100644
--- a/lib/ui.lib.php
+++ b/lib/ui.lib.php
@@ -176,8 +176,10 @@ function show_local_control () {
* @catagory General
* @author Nedko Arnaudov
*/
-function truncate_with_ellipsis($text, $max=27) {
+function truncate_with_ellipsis($text, $max='') {
+ $max = $max ? $max : '27';
+
/* If we want it to be shorter than three, just throw it back */
if ($max > 3) {