1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-15 01:50:55 +01:00

(stable) 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 0361591da0
commit 8edd04aff3

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.',