reset errors if new is set

This commit is contained in:
Matthias Pfefferle 2023-05-12 10:23:58 +02:00
parent 0685763424
commit 94e5539d75

View file

@ -224,6 +224,18 @@ class Follower {
return null; return null;
} }
/**
* Set new Error
*
* @param mixed $error The latest HTTP-Error.
*
* @return void
*/
public function set_error( $error ) {
$this->errors = array();
$this->error = $error;
}
/** /**
* Get the errors. * Get the errors.
* *