aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-18 09:13:43 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-02-26 11:38:18 +0000
commit80d5e66ccc5b0d99db1391e035b584e9ae015339 (patch)
tree854df9c2e1223021f45260d05b3f3d4924024868 /perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm
parent6954823390e7332bd8d1ab0afa28b3c0fb02db39 (diff)
Fix password setting in createsuperuser script.
Diffstat (limited to 'perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm')
-rw-r--r--perllib/DBIx/Class/FixMyStreet/EncodedColumn.pm2
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]);