summaryrefslogtreecommitdiffstats
path: root/103.patch
blob: c5e9666d15eb4bf03706ccfe570a9b6632562155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 76e3fae5072624639045a15fbe88d22e198ad649 Mon Sep 17 00:00:00 2001
From: Damon <damon.tu@outlook.com>
Date: Fri, 29 Nov 2019 10:44:05 +0800
Subject: [PATCH] Fix undefined constant name

---
 PEAR/Builder.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PEAR/Builder.php b/PEAR/Builder.php
index a7b464341..bfc2ca221 100644
--- a/PEAR/Builder.php
+++ b/PEAR/Builder.php
@@ -402,9 +402,9 @@ function build($descfile, $callback = null)
                 }
                 if (substr($option['name'], 0, 5) === 'with-' &&
                     ($response === 'yes' || $response === 'autodetect')) {
-                    $configure_command .= " --{$option[name]}";
+                    $configure_command .= " --{$option['name']}";
                 } else {
-                    $configure_command .= " --{$option[name]}=".trim($response);
+                    $configure_command .= " --{$option['name']}=".trim($response);
                 }
             }
         }