X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpassword_history.pm;fp=FS%2FFS%2Fpassword_history.pm;h=1915a2185da15f5018a14bdadca8d0c98b985222;hp=13d16010d3d0c7fa170966e0c8c7bdd3bffcd9e7;hb=691de38ac2ca6c54b37feb50e1332bab6268773f;hpb=b3b6d0750030d08032756ad4a6969e193a65a928 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),