function aleaChar() : fixed php warning
authorBenjamin Renard <brenard@easter-eggs.com>
Wed, 16 Mar 2011 13:47:46 +0000 (14:47 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Wed, 16 Mar 2011 13:47:46 +0000 (14:47 +0100)
public_html/includes/functions.php

index 5dd7a0f..95beace 100644 (file)
@@ -409,7 +409,7 @@ function LSdebugDefined() {
           $nchars.=$chs['chars'];
         }
       }
-      if(strlen($chars)>0) {
+      if(is_string($chars) && strlen($chars)>0) {
         $chars=$nchars;
       }
       else {