1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +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:
epriestley 2015-05-21 09:27:57 -07:00
parent 7ecd5155e5
commit a50de8958e

View file

@ -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());
}