reset errors if new is set
This commit is contained in:
parent
0685763424
commit
94e5539d75
1 changed files with 12 additions and 0 deletions
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue