projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.16
[freeside.git]
/
rt
/
lib
/
RT
/
Shredder
/
Plugin
/
SQLDump.pm
diff --git
a/rt/lib/RT/Shredder/Plugin/SQLDump.pm
b/rt/lib/RT/Shredder/Plugin/SQLDump.pm
index
cc0d4cc
..
7b851f3
100644
(file)
--- a/
rt/lib/RT/Shredder/Plugin/SQLDump.pm
+++ b/
rt/lib/RT/Shredder/Plugin/SQLDump.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
4
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
9
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-89,8
+89,8
@@
sub Run
my $query = $args{'Object'}->_AsInsertQuery;
$query .= "\n" unless $query =~ /\n$/;
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;
}
1;