Fix: Checkstyle
This commit is contained in:
parent
d8d1db143f
commit
72608e7a72
@ -249,9 +249,8 @@ function getCategory($authentication,$id)
|
|||||||
);
|
);
|
||||||
|
|
||||||
$cats = $categorie->get_filles();
|
$cats = $categorie->get_filles();
|
||||||
if (sizeof ($cats) > 0)
|
if (count($cats) > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach($cats as $fille)
|
foreach($cats as $fille)
|
||||||
{
|
{
|
||||||
$dir = (!empty($conf->categorie->dir_output)?$conf->categorie->dir_output:$conf->service->dir_output);
|
$dir = (!empty($conf->categorie->dir_output)?$conf->categorie->dir_output:$conf->service->dir_output);
|
||||||
|
|||||||
@ -622,19 +622,17 @@ function getProductsForCategory($authentication,$id)
|
|||||||
$res = $db->query($sql);
|
$res = $db->query($sql);
|
||||||
if ($res)
|
if ($res)
|
||||||
{
|
{
|
||||||
|
|
||||||
while ($rec = $db->fetch_array($res))
|
while ($rec = $db->fetch_array($res))
|
||||||
{
|
{
|
||||||
$obj = new Product($db);
|
$obj = new Product($db);
|
||||||
$obj->fetch($rec['fk_'.$field]);
|
$obj->fetch($rec['fk_'.$field]);
|
||||||
if($obj->status > 0 ) {
|
if($obj->status > 0 )
|
||||||
|
{
|
||||||
$dir = (!empty($conf->product->dir_output)?$conf->product->dir_output:$conf->service->dir_output);
|
$dir = (!empty($conf->product->dir_output)?$conf->product->dir_output:$conf->service->dir_output);
|
||||||
$pdir = get_exdir($obj->id,2) . $obj->id ."/photos/";
|
$pdir = get_exdir($obj->id,2) . $obj->id ."/photos/";
|
||||||
$dir = $dir . '/'. $pdir;
|
$dir = $dir . '/'. $pdir;
|
||||||
|
|
||||||
$products[] = array(
|
$products[] = array(
|
||||||
|
|
||||||
'id' => $obj->id,
|
'id' => $obj->id,
|
||||||
'ref' => $obj->ref,
|
'ref' => $obj->ref,
|
||||||
'ref_ext' => $obj->ref_ext,
|
'ref_ext' => $obj->ref_ext,
|
||||||
@ -664,8 +662,6 @@ function getProductsForCategory($authentication,$id)
|
|||||||
'import_key' => $obj->import_key,
|
'import_key' => $obj->import_key,
|
||||||
'dir' => $pdir,
|
'dir' => $pdir,
|
||||||
'photos' => $obj->liste_photos($dir,$nbmax=10)
|
'photos' => $obj->liste_photos($dir,$nbmax=10)
|
||||||
|
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user