mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Minor, fix empty()
call for older versions of PHP
Summary: While it's fine on 5.5.8, older versions of PHP are not happy about this.
This commit is contained in:
parent
ef0a0b5727
commit
e3fd094a09
1 changed files with 2 additions and 1 deletions
|
@ -133,7 +133,8 @@ final class PhabricatorConfigWelcomeController
|
|||
$content);
|
||||
|
||||
$settings_href = PhabricatorEnv::getURI('/settings/');
|
||||
$have_settings = !empty($viewer->loadPreferences()->getPreferences());
|
||||
$prefs = $viewer->loadPreferences()->getPreferences();
|
||||
$have_settings = !empty($prefs);
|
||||
if ($have_settings) {
|
||||
$content = pht(
|
||||
"You've adjusted at least one setting on your account.\n\n".
|
||||
|
|
Loading…
Reference in a new issue