1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-09 16:32:39 +01:00

Fix "bin/storage dump" with no "--output"

Ref T13004. (I distinctly remember testing this, but must have tweaked things afterward.)
This commit is contained in:
epriestley 2017-10-07 13:23:18 -07:00
parent 1ee7b3ab8c
commit 4fd9d2d4bb

View file

@ -237,7 +237,7 @@ final class PhabricatorStorageManagementDumpWorkflow
$file = fopen($output_file, 'wb');
}
if (!$file) {
if (($output_file !== null) && !$file) {
throw new Exception(
pht(
'Failed to open file "%s" for writing.',