diff options
author | Ivan Kohler <ivan@freeside.biz> | 2022-09-07 16:50:36 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2022-09-07 16:50:36 -0700 |
commit | 6229b35780da2f5593202aa1f0a61f31eb8fa9fa (patch) | |
tree | 54e1c3453478ee0b4bcd2716138aa6300c8847b6 | |
parent | f2d69a9f2797d7b2b071c99792938d4f04b18920 (diff) |
fix password_history upgrade on new DBs
-rw-r--r-- | FS/FS/password_history.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/password_history.pm b/FS/FS/password_history.pm index 13d16010d..1915a2185 100644 --- a/FS/FS/password_history.pm +++ b/FS/FS/password_history.pm @@ -173,6 +173,7 @@ sub _upgrade_schema { push @where, " ( $fk IS NOT NULL AND NOT EXISTS(SELECT 1 FROM $table WHERE $table.$key = $fk) )"; } + return '' unless @where; my @recs = qsearch({ 'table' => 'password_history', 'extra_sql' => ' WHERE ' . join(' AND ', @where), |