[-] WS : Fix id_shop to not being mandatory

This commit is contained in:
aKorczak
2012-06-14 08:59:03 +00:00
parent c6a936fe5f
commit a7906a50db
+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;
}