Przeglądaj źródła

Preventing empty strings

pecesama 15 lat temu
rodzic
commit
5fd2206225
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      classes/functions.php

+ 1 - 1
classes/functions.php Wyświetl plik

@@ -488,7 +488,7 @@ if(!defined('entry') || !entry) die('Not a valid page');
488 488
 	}
489 489
 
490 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 492
 			return strip_tags($string);
493 493
 		}
494 494
 		$string = strip_tags($string);