// Fix #PSCFV-3927

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17329 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-09-13 09:33:53 +00:00
parent a6fbbe852f
commit cd680b497e
@@ -525,17 +525,6 @@ class WebserviceSpecificManagementImagesCore implements WebserviceSpecificManage
$available_image_ids[] = $image['id_image'];
// Old Behavior
$nodes = scandir($directory);
foreach ($nodes as $node)
// avoid too much preg_match...
if ($node != '.' && $node != '..' && $node != '.svn')
{
preg_match('/^'.intval($object_id).'-(\d+)\.jpg*$/Ui', $node, $matches);
if (isset($matches[1]))
$available_image_ids[] = $matches[1];
}
// If an image id is specified
if ($this->wsObject->urlSegment[3] != '')
{