Committer: ailyin
LJSUP-13914 (Suspend identity account with sysbanned email)U trunk/cgi-bin/supportlib.pl
Modified: trunk/cgi-bin/supportlib.pl =================================================================== --- trunk/cgi-bin/supportlib.pl 2012-12-14 08:10:03 UTC (rev 23467) +++ trunk/cgi-bin/supportlib.pl 2012-12-14 08:35:23 UTC (rev 23468) @@ -617,8 +617,13 @@ foreach my $p (@props) { $add_data->($p, $o->{$p}); } - $dbh->do("INSERT INTO supportprop (spid, prop, value) VALUES " . join(',', @data)); + if (@data) { + $dbh->do( + 'INSERT INTO supportprop (spid, prop, value) VALUES ' . + join( q{,}, @data ) ); + } + $dbh->do("INSERT INTO supportlog (splid, spid, timelogged, type, faqid, userid, message) ". "VALUES (NULL, $spid, UNIX_TIMESTAMP(), 'req', 0, $qrequserid, $qbody)");