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 committed Aug 26, 2021
1 parent 8229101 commit ea2bfec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,5 @@ and may require changes in applications that invoke these methods:_
[#125]: https://github.com/hamstar/Wikimate/pull/125
[#127]: https://github.com/hamstar/Wikimate/pull/127
[#128]: https://github.com/hamstar/Wikimate/pull/128
[#129]: https://github.com/hamstar/Wikimate/pull/129
[#130]: https://github.com/hamstar/Wikimate/pull/130
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 ea2bfec

Please sign in to comment.