CLI minor formatting

https://github.com/FreshRSS/FreshRSS/issues/1095
This commit is contained in:
Alexandre Alapetite
2016-10-24 21:58:22 +02:00
parent 835f3d746c
commit c8e5292ab7
2 changed files with 3 additions and 4 deletions

View File

@@ -35,8 +35,7 @@ $ok = FreshRSS_user_Controller::createUser($username,
'language' => empty($options['language']) ? '' : $options['language'],
'token' => empty($options['token']) ? '' : $options['token'],
),
!isset($options['no-default-feeds'])
);
!isset($options['no-default-feeds']));
if (!$ok) {
fail('FreshRSS could not create user!');

View File

@@ -20,8 +20,8 @@ $importController = new FreshRSS_importExport_Controller();
$ok = false;
try {
$ok = $importController->exportFile(true, true, true,
empty($options['max-feed-entries']) ? 100 : intval($options['max-feed-entries']),
$username);
empty($options['max-feed-entries']) ? 100 : intval($options['max-feed-entries']),
$username);
} catch (FreshRSS_ZipMissing_Exception $zme) {
fail('FreshRSS error: Lacking php-zip extension!');
}