Fix reference to sources class variable
This commit is contained in:
parent
b9d40f723b
commit
1e6aff69d6
|
@ -80,7 +80,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
|
||||||
$this->status = $this->trimmed('status');
|
$this->status = $this->trimmed('status');
|
||||||
$this->source = $this->trimmed('source');
|
$this->source = $this->trimmed('source');
|
||||||
|
|
||||||
if (empty($this->source) || in_array($source, $this->reserved_sources)) {
|
if (empty($this->source) || in_array($source, self::$reserved_sources)) {
|
||||||
$this->source = 'api';
|
$this->source = 'api';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue