Hi there
I'm having some troubles inserting a product, and I'm not sure why.
Sometimes I can insert the product on the second try, sometimes it just wont insert the product....
I'm getting this error logs :

Code:
[27-Nov-2014 13:06:06 Europe/Lisbon] PHP Warning:  Invalid argument supplied for foreach() in /*******/admin/includes/modules/product_bookx/collect_info.php on line 786
[27-Nov-2014 13:06:06 Europe/Lisbon] PHP Warning:  Invalid argument supplied for foreach() in /******/admin/includes/modules/product_bookx/collect_info.php on line 952
The line are:
PHP Code:
foreach ($product_assigned_authors as $product_assigned_author) {
                          echo 
'<div class="drop_down_div">';
                          echo 
zen_draw_hidden_field('assigned_author_db_id[' $author_counter ']'$product_assigned_author['primary_id']);
                          echo 
TEXT_PRODUCTS_BOOKX_AUTHOR '&nbsp;' zen_draw_pull_down_menu('bookx_author_id[' $author_counter ']'$authors_array$product_assigned_author['bookx_author_id']);
                          if (
count($author_types_array)) {
                              echo 
TEXT_PRODUCTS_BOOKX_AUTHOR_TYPE '&nbsp;' zen_draw_pull_down_menu('bookx_author_type_id[' $author_counter ']'$author_types_array$product_assigned_author['bookx_author_type_id']);
                          };
                          echo 
'</div>';
                          
$author_counter++;
                        } 
in netbeans there is a warning about a empty statement... but I already worked with no issues inserting other books....

line 952 no warnings....

PHP Code:
foreach ($product_assigned_genres as $product_assigned_genre) {
                          echo 
'<div class="drop_down_div">';
                          echo 
zen_draw_hidden_field('assigned_genre_db_id[' $genre_counter ']'$product_assigned_genre['primary_id']);
                          echo 
zen_draw_pull_down_menu('bookx_genre_id[' $genre_counter ']'$genre_array$product_assigned_genre['bookx_genre_id']);
                          echo 
'</div>';
                          
$genre_counter++;
                        } 
Could this some sort of ID's issue ?

Thanks