Fix reference to sources class variable

This commit is contained in:
Zach Copley 2009-11-03 09:41:36 -08:00
parent b9d40f723b
commit 1e6aff69d6

View File

@ -80,7 +80,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
$this->status = $this->trimmed('status');
$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';
}