[-] WS : Fix id_shop to not being mandatory

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16014 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aKorczak
2012-06-14 08:59:03 +00:00
parent 12420b5b67
commit 9ea230bb0a
+6 -2
View File
@@ -777,8 +777,12 @@ class WebserviceRequestCore
return true;
}
}
$this->setError(404, 'This shop id doesn\'t exist', 129);
else
{
self::$shopIDs[] = Context::getContext()->shop->id;
return true;
}
$this->setError(404, 'This shop id does not exist', 999);
return false;
}