Browse Source

Preventing empty strings

pecesama 16 years ago
parent
commit
5fd2206225
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/functions.php

+ 1 - 1
classes/functions.php View File

488
 	}
488
 	}
489
 
489
 
490
 	function trimString($string, $len = "") {
490
 	function trimString($string, $len = "") {
491
-		if($len>strlen($string) or $len<1) {		
491
+		if($len>strlen($string) or $len<1 or strlen($string)<1) {		
492
 			return strip_tags($string);
492
 			return strip_tags($string);
493
 		}
493
 		}
494
 		$string = strip_tags($string);
494
 		$string = strip_tags($string);