]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Introduced
authorwbudic <redacted>
Sun, 16 Dec 2018 05:25:27 +0000 (16:25 +1100)
committerwbudic <redacted>
Sun, 16 Dec 2018 05:25:27 +0000 (16:25 +1100)
htdocs/cgi-bin/main.cgi

index 16cb3462ebb4af39475cf1f4337c727ed175ba89..23d3f15fbbc057e6a8adc293a667f2071ffd60bf 100755 (executable)
@@ -399,8 +399,8 @@ try{
                        my $cnt = 1;
                        while(my @row = $sth->fetchrow_array()) {
 
-                       my $sth_upd = $dbh->("UPDATE LOG SET rowid=".$cnt.
-                                               " WHERE rowid=".$row[0].";");
+                       my $sth_upd = $dbh->prepare("UPDATE LOG SET rowid=".$cnt.
+                                               " WHERE rowid='".$row[0]."';");
                                $sth_upd->execute();
                                $cnt = $cnt + 1;
                        }