Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Telemetry
KUserFeedback
Commits
58f81a74
Commit
58f81a74
authored
Dec 22, 2016
by
Volker Krause
Browse files
Fix throw syntax error
parent
fa397a3b
Changes
1
Show whitespace changes
Inline
Side-by-side
server/shared/receiver.php
View file @
58f81a74
...
...
@@ -38,7 +38,7 @@ function post_submit($productName)
$db
->
beginTransaction
();
$product
=
Product
::
productByName
(
$db
,
$productName
);
if
(
is_null
(
$product
))
throw
RESTException
(
'Unknown product.'
,
404
);
throw
new
RESTException
(
'Unknown product.'
,
404
);
Sample
::
insert
(
$db
,
$rawPostData
,
$product
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment