Skip to content

Commit

Permalink
Don't attempt to delete PMs
Browse files Browse the repository at this point in the history
  • Loading branch information
iggyvolz committed Jun 4, 2017
1 parent e4e6c06 commit 9ba6f01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/phpbbRemoteApi/phpbbRemoteApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,7 @@ public function __construct($url,$p)
// Check to see if the PM has been deleted
if(iterator_to_array($result->getElementsByTagName("p"))[2]->nodeValue==="You are not able to read this message because it was removed by the author.Return to previous folder")
{
// Delete the PM from our inbox
$this->api->delete_pm($p);
// Mark PM as deleted
$this->deleted=true;
return;
}
Expand Down

0 comments on commit 9ba6f01

Please sign in to comment.