From 5fd22062252415cf27d28586d284cd7716d188a9 Mon Sep 17 00:00:00 2001 From: pecesama Date: Tue, 28 Oct 2008 20:50:15 +0000 Subject: [PATCH] Preventing empty strings --- classes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/functions.php b/classes/functions.php index fa32a1b..b854b3b 100644 --- a/classes/functions.php +++ b/classes/functions.php @@ -488,7 +488,7 @@ if(!defined('entry') || !entry) die('Not a valid page'); } function trimString($string, $len = "") { - if($len>strlen($string) or $len<1) { + if($len>strlen($string) or $len<1 or strlen($string)<1) { return strip_tags($string); } $string = strip_tags($string);