diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-02-27 07:39:46 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-02-27 07:39:46 +0000 |
commit | b0b6810e372a154b1af7da72c1bd2143e5e251e9 (patch) | |
tree | 1ebbc91b59f8822e483e51f1f486c347718b0e65 /perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm | |
parent | 152f8f4e608abc5029104e652f4ef37d4cfe02cb (diff) | |
parent | 18adbe946c1104338e6abff159b4f9877154969c (diff) |
Merge branch 'admin-only-categories'
Diffstat (limited to 'perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm')
-rw-r--r-- | perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm b/perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm index 3be6e4594..82e6e591e 100644 --- a/perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm +++ b/perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm @@ -10,7 +10,7 @@ sub set_column { my $self = shift; if ($_[0] eq 'password') { my $cobrand = $self->result_source->schema->cobrand; - if ($cobrand->moniker eq 'tfl') { + if ($cobrand && $cobrand->moniker eq 'tfl') { if (defined $_[1]) { if (defined $_[2]) { $self->set_extra_metadata(tfl_password => $_[1]); |