LSerror::getErrors() : fix php warning
authorBenjamin Renard <bn8@zionetrix.net>
Sun, 2 Sep 2012 17:49:34 +0000 (19:49 +0200)
committerBenjamin Renard <bn8@zionetrix.net>
Sun, 2 Sep 2012 17:49:34 +0000 (19:49 +0200)
public_html/includes/class/class.LSerror.php

index a7ea698..e71b8bf 100644 (file)
@@ -114,6 +114,7 @@ class LSerror {
   */
   public static function getErrors() {
     if(!empty($_SESSION['LSerror'])) {
+      $txt='';
       foreach ($_SESSION['LSerror'] as $error) {
         $txt.=self::getError($error)."<br />\n";
       }