Skip to content

Commit

Permalink
Fix stray error return in WikiPage::setText()
Browse files Browse the repository at this point in the history
  • Loading branch information
Xymph authored and waldyrious committed Aug 26, 2021
1 parent 223a5df commit f8f42ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ and may require changes in applications that invoke these methods:_

* Error return values for `WikiPage::getSection()` changed from `false` to `null` ([#129])

#### Fixed

* Fixed one error return value in `WikiPage::setText()` ([#129])

#### Removed

* Method `Wikimate::debugCurlConfig()`, deprecated since v0.10.0 ([#128])
Expand Down
2 changes: 1 addition & 1 deletion Wikimate.php
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ public function setText($text, $section = null, $minor = false, $summary = null)
// Check for errors
if (isset($r['error'])) {
$this->error = $r['error']; // Set the error if there was one
return null;
return false;
} else {
$this->error = null; // Reset the error status
}
Expand Down

0 comments on commit f8f42ce

Please sign in to comment.