mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
Return empty array as a default value for repository symbol languages
Summary: Fixes T8283. The code in `FileController` assumes this value is an array. Test Plan: Loaded any file in Diffusion in unconfigured repository, no more warning. Reviewers: avivey, joshuaspence, btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T8283 Differential Revision: https://secure.phabricator.com/D12964
This commit is contained in:
parent
7ecd5155e5
commit
a50de8958e
1 changed files with 2 additions and 2 deletions
|
@ -1781,11 +1781,11 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
|||
/* -( Symbols )-------------------------------------------------------------*/
|
||||
|
||||
public function getSymbolSources() {
|
||||
return $this->getDetail('symbol-sources');
|
||||
return $this->getDetail('symbol-sources', array());
|
||||
}
|
||||
|
||||
public function getSymbolLanguages() {
|
||||
return $this->getDetail('symbol-languages');
|
||||
return $this->getDetail('symbol-languages', array());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue