1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +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:
epriestley 2014-06-23 09:40:15 -07:00
parent ef0a0b5727
commit e3fd094a09

View file

@ -133,7 +133,8 @@ final class PhabricatorConfigWelcomeController
$content); $content);
$settings_href = PhabricatorEnv::getURI('/settings/'); $settings_href = PhabricatorEnv::getURI('/settings/');
$have_settings = !empty($viewer->loadPreferences()->getPreferences()); $prefs = $viewer->loadPreferences()->getPreferences();
$have_settings = !empty($prefs);
if ($have_settings) { if ($have_settings) {
$content = pht( $content = pht(
"You've adjusted at least one setting on your account.\n\n". "You've adjusted at least one setting on your account.\n\n".