X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FShredder%2FPlugin%2FSQLDump.pm;h=7b851f383409d465eae565ab3969ed219b79092a;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=91c2179aa6fdbd97177d80cd1672bc10484bfbce;hpb=85e677b86fc37c54e6de2b06340351a28f5a5916;p=freeside.git diff --git a/rt/lib/RT/Shredder/Plugin/SQLDump.pm b/rt/lib/RT/Shredder/Plugin/SQLDump.pm index 91c2179aa..7b851f383 100644 --- a/rt/lib/RT/Shredder/Plugin/SQLDump.pm +++ b/rt/lib/RT/Shredder/Plugin/SQLDump.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -89,8 +89,8 @@ sub Run my $query = $args{'Object'}->_AsInsertQuery; $query .= "\n" unless $query =~ /\n$/; - return print $fh $query or return (0, "Couldn't write to filehandle"); - return 1; + return 1 if print $fh $query; + return (0, "Couldn't write to filehandle"); } 1;