[-] WS : Fix id_shop to not being mandatory

This commit is contained in:
aKorczak committed 2012-06-14 08:59:03 +00:00
1 parent c6a936fe5f
commit a7906a50db
1 file changed
+6 -2
+6 -2
View File
@@ -777,8 +777,12 @@ class WebserviceRequestCore
return true; return true;
} }
} }
else
$this->setError(404, 'This shop id doesn\'t exist', 129); {
self::$shopIDs[] = Context::getContext()->shop->id;
return true;
}
$this->setError(404, 'This shop id does not exist', 999);
return false; return false;
} }