diff --git a/phar-file-checksums.php b/phar-file-checksums.php index d44c7d7..6d7ba6b 100644 --- a/phar-file-checksums.php +++ b/phar-file-checksums.php @@ -149,7 +149,7 @@ } catch(Exception $e) { // Dump our file of checksums now, so that we can use it later. - if (!((bool) $options['nowrite_checksums'])) { + if (empty($options['nowrite_checksums'])) { file_put_contents($options['checksum_file'], json_encode($checksums)); } if (!QUIET_MODE) {