Fix: Checkstyle
This commit is contained in:
parent
d8d1db143f
commit
72608e7a72
@ -127,7 +127,7 @@ $server->wsdl->addComplexType(
|
|||||||
/*
|
/*
|
||||||
* Les photos de la catégorie (un tableau indéxé qui contient les images avec leur vignette)
|
* Les photos de la catégorie (un tableau indéxé qui contient les images avec leur vignette)
|
||||||
*/
|
*/
|
||||||
$server->wsdl->addComplexType(
|
$server->wsdl->addComplexType(
|
||||||
'PhotosArray',
|
'PhotosArray',
|
||||||
'complexType',
|
'complexType',
|
||||||
'array',
|
'array',
|
||||||
@ -137,7 +137,7 @@ $server->wsdl->addComplexType(
|
|||||||
array(
|
array(
|
||||||
array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:image[]')
|
array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:image[]')
|
||||||
),
|
),
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -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->fetch($rec['fk_'.$field]);
|
||||||
|
if($obj->status > 0 )
|
||||||
{
|
{
|
||||||
$obj = new Product ($db);
|
|
||||||
$obj->fetch ($rec['fk_'.$field]);
|
|
||||||
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