commit:     1926650b7c0f73fb44d8ca1c32f92883ed851e52
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 20 00:16:02 2015 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sun Dec 20 00:16:02 2015 +0000
URL:        https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=1926650b

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.

 src/php.eselect.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 )) ]}"

Reply via email to