diff --git a/src/applications/console/controller/DarkConsoleController.php b/src/applications/console/controller/DarkConsoleController.php index 3c4f82feba..e532fd7657 100644 --- a/src/applications/console/controller/DarkConsoleController.php +++ b/src/applications/console/controller/DarkConsoleController.php @@ -35,7 +35,7 @@ final class DarkConsoleController extends PhabricatorController { } $tab = $request->getStr('tab'); - if (strlen($tab)) { + if (phutil_nonempty_string($tab)) { $this->writeDarkConsoleSetting( PhabricatorDarkConsoleTabSetting::SETTINGKEY, $tab);