Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r23468: LJSUP-13914 (Suspend identity account wi...

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)");
 

Tags: ailyin, andy, livejournal, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments