Browse Source

Fix form attributes (replace string by array) to avoid warning

Yannick Warnier 10 years ago
parent
commit
ee8760617f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      main/upload/form.scorm.php

+ 5 - 1
main/upload/form.scorm.php

@@ -52,7 +52,11 @@ $form = new FormValidator(
     'POST',
     'upload.php',
     '',
-    'id="upload_form" enctype="multipart/form-data" style="background-image: url(\'../img/scorm.jpg\'); background-repeat: no-repeat; background-position: 620px;"'
+    array(
+        'id' => "upload_form",
+        'enctype' => "multipart/form-data",
+        'style' => "background-image:url(\'../img/scorm.jpg\');background-repeat:no-repeat;background-position:620px;"
+    )
 );
 $form->addElement('header', '', $nameTools);
 $form->addElement('hidden', 'curdirpath', $path);