]> git.sesse.net Git - remoteglot/commitdiff
Fix an SQL error.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 5 Dec 2021 11:38:12 +0000 (12:38 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 12 Jul 2023 09:46:11 +0000 (11:46 +0200)
remoteglot.pl

index b9055a64d30616ff945bed8fd59c500ab8eeb62c..f83ac4904c3d75e6f422136df1b6ce0c60a2b9b9 100755 (executable)
@@ -1072,7 +1072,7 @@ sub output_json {
        }
 
        if (exists($pos_calculating->{'history'}) &&
-           defined($remoteglotconf::json_history_dir)) {
+           defined($remoteglotconf::json_history_dir) && defined($json->{'engine'}{name})) {
                my $id = id_for_pos($pos_calculating);
                my $filename = $remoteglotconf::json_history_dir . "/" . $id . ".json";