fix: api.module.RESTexample (removed unset variable)
This commit is contained in:
parent
e10382155a
commit
eef40ce771
|
@ -93,7 +93,6 @@ class RESTexample{
|
|||
|
||||
// UPDATE an article with new content with variables:
|
||||
$URL_0; // id of article to update
|
||||
$title; // new article's title
|
||||
$content; // new article's content
|
||||
|
||||
// ...
|
||||
|
@ -104,7 +103,7 @@ class RESTexample{
|
|||
if( !$success )
|
||||
return ['error' => new Error(Err::ModuleError)]; // or other `Err` constant
|
||||
|
||||
return ['article' => "Article number `$URL_0`: $title / $content"];
|
||||
return ['article' => "Article number `$URL_0`: sometitle / $content"];
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue