diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-16 00:37:04 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2010-10-16 00:37:04 -0700 |
commit | e6adaf866920ee414bdf732047859d74991e1cb9 (patch) | |
tree | 0a6bf5da816cb554287971950c7d19805a64b480 /omptagger | |
parent | 8d1d7bb3e2e6f0fb42e8756e54f13fa866575be5 (diff) | |
download | omptagger-e6adaf866920ee414bdf732047859d74991e1cb9.tar.gz omptagger-e6adaf866920ee414bdf732047859d74991e1cb9.tar.xz |
Do not fail if adding a field that does not exist.
Diffstat (limited to 'omptagger')
-rwxr-xr-x | omptagger | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -120,7 +120,12 @@ class Metadata field.upcase! - @tags[field] << value + if @tags.has_key?(field) + @tags[field] << value + else + @tags[field] = value + end + output(field, value) @write = true |