diff --git a/htdocs/product/index.php b/htdocs/product/index.php
index 4aaaf3a0fa7..7069f21e459 100644
--- a/htdocs/product/index.php
+++ b/htdocs/product/index.php
@@ -105,7 +105,8 @@ if (!empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) { // This may be
print '
'.$langs->trans("Search").'
';
}
print '
';
- print '
';
+ print '
';
+ print '
';
if ($i == 0) {
print '
';
}
@@ -336,11 +337,11 @@ if ((!empty($conf->product->enabled) || !empty($conf->service->enabled)) && ($us
$product_static->status_buy = $objp->tobuy;
$product_static->status_batch = $objp->tobatch;
- //Multilangs
+ // Multilangs
if (!empty($conf->global->MAIN_MULTILANGS)) {
$sql = "SELECT label";
$sql .= " FROM ".MAIN_DB_PREFIX."product_lang";
- $sql .= " WHERE fk_product=".$objp->rowid;
+ $sql .= " WHERE fk_product=".((int) $objp->rowid);
$sql .= " AND lang='".$db->escape($langs->getDefaultLang())."'";
$resultd = $db->query($sql);
@@ -357,7 +358,7 @@ if ((!empty($conf->product->enabled) || !empty($conf->service->enabled)) && ($us
print '