Commit 58f81a74 authored by Volker Krause's avatar Volker Krause
Browse files

Fix throw syntax error

parent fa397a3b
...@@ -38,7 +38,7 @@ function post_submit($productName) ...@@ -38,7 +38,7 @@ function post_submit($productName)
$db->beginTransaction(); $db->beginTransaction();
$product = Product::productByName($db, $productName); $product = Product::productByName($db, $productName);
if (is_null($product)) if (is_null($product))
throw RESTException('Unknown product.', 404); throw new RESTException('Unknown product.', 404);
Sample::insert($db, $rawPostData, $product); Sample::insert($db, $rawPostData, $product);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment