custom header plugin header plugin bugfix : undefined was as a value when
[old-projects.git] / philter / philter / include / plugin_header.inc.php
index 96dad0f..8b044c5 100644 (file)
@@ -55,7 +55,7 @@ class HdrPlugin extends MatchPlugin {
     var txt_i = document.createElement('input');
     txt_i.setAttribute('type','text');
     txt_i.setAttribute('name', Node.name+'[3]');
-    txt_i.setAttribute('value', data[3]);
+    txt_i.setAttribute('value', (data[3] ? data[3] : '') );
     Node.appendChild(txt_i);
 }";
     }