summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2015-12-19 19:16:02 -0500
committerMichael Orlitzky <mjo@gentoo.org>2015-12-19 19:16:02 -0500
commit1926650b7c0f73fb44d8ca1c32f92883ed851e52 (patch)
tree4c5b33a06a4d3852d92a816ffe354b5448752452
parentConsolidate all list_foo actions into one new list_sapi() function. (diff)
downloadeselect-php-1926650b7c0f73fb44d8ca1c32f92883ed851e52.tar.gz
eselect-php-1926650b7c0f73fb44d8ca1c32f92883ed851e52.tar.bz2
eselect-php-1926650b7c0f73fb44d8ca1c32f92883ed851e52.zip
Fix bug in resolv_target() introduced while refactoring.
The resolv_target() function was making a call to find_targets_$1. This was incorrectly refacored to "find_targets $1" instead of "find_sapi_targets $1" and has been fixed.
-rw-r--r--src/php.eselect.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/php.eselect.in b/src/php.eselect.in
index 9a1d628..d730e00 100644
--- a/src/php.eselect.in
+++ b/src/php.eselect.in
@@ -232,7 +232,7 @@ write_mod_php_conf() {
}
resolv_target() {
- local targets=( $(find_targets $1) )
+ local targets=( $(find_sapi_targets $1) )
if is_number $2; then
if [[ $2 -le ${#targets[@]} && $2 -gt 0 ]] ; then
echo "${targets[ $(( $2 - 1 )) ]}"