Overview
Comment:Fix missing reset of $cmd variable before detection
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk | stable | 1.2.6
Files: files | file ages | folders
SHA3-256: 10a2f0ba945a61ceadfc71b10c1a84bad927290ab0a3d99ac1cb18fc90f204bf
User & Date: bohwaz on 2023-02-08 14:59:51
Other Links: manifest | tags
Context
2023-02-08
14:59
Fix missing reset of $cmd variable before detection Leaf check-in: 10a2f0ba94 user: bohwaz tags: trunk, stable, 1.2.6
2023-02-07
20:33
Bump version check-in: 9fee503a46 user: bohwaz tags: trunk, stable, 1.2.6
Changes

Modified src/include/lib/Garradin/Utils.php from [fbcc56cf50] to [a7a3ee24da].

1075
1076
1077
1078
1079
1080
1081

1082
1083
1084
1085
1086
1087
1088
                return $target;
            }

            unset($in);

            // Try to find a local executable
            $list = ['prince', 'chromium', 'wkhtmltopdf', 'weasyprint'];


            foreach ($list as $program) {
                if (shell_exec('which ' . $program)) {
                    $cmd = $program;
                    break;
                }
            }







>







1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
                return $target;
            }

            unset($in);

            // Try to find a local executable
            $list = ['prince', 'chromium', 'wkhtmltopdf', 'weasyprint'];
            $cmd = null;

            foreach ($list as $program) {
                if (shell_exec('which ' . $program)) {
                    $cmd = $program;
                    break;
                }
            }