google-code-export / epidemic-marketplace

Automatically exported from code.google.com/p/epidemic-marketplace
0 stars 0 forks source link

Erro no form upload front-end #284

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Sem sessão, aceder a 
2. http://www.epimarketplace.net/upload

What is the expected output? What do you see instead?
Ocorrem os erros:

warning: array_merge(): Argument #2 is not an array in 
/var/www/html/drupal/sites/all/modules/custom/epiwork/modules/resources/includes
/forms.inc on line 17.
warning: array_merge(): Argument #2 is not an array in 
/var/www/html/drupal/sites/all/modules/custom/epiwork/modules/resources/includes
/forms.inc on line 18.
warning: Invalid argument supplied for foreach() in 
/var/www/html/drupal/includes/form.inc on line 1435.
warning: Invalid argument supplied for foreach() in 
/var/www/html/drupal/includes/form.inc on line 1435.

Original issue reported on code.google.com by graca.pa...@gmail.com on 1 May 2012 at 7:00

GoogleCodeExporter commented 9 years ago
Validação das variáveis foi adicionada:
$subjectsList = $ws->getSubjectsList();
if (!is_array($subjectsList)) $subjectsList = array();
$typesList = $ws->getTypesList();
if (!is_array($typesList)) $typesList = array();

Original comment by stinkle....@gmail.com on 2 May 2012 at 1:36