]> git.mjollnir.org Git - moodle.git/commitdiff
auth/ldap: fix PHP warnings and remove bad "Choose one" id
authorfmarier <fmarier>
Thu, 19 Jun 2008 02:30:37 +0000 (02:30 +0000)
committerfmarier <fmarier>
Thu, 19 Jun 2008 02:30:37 +0000 (02:30 +0000)
Merged from MOODLE_19_STABLE

auth/ldap/config.html

index e2b34fb36cef298a235c5d080d85a11237c73909..4ea17eba760d09cd3e9460005112f7f62769e592 100644 (file)
@@ -195,9 +195,9 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
     <td>
     <?php
        $opt_deref = array();
-       $opt_deref[LDAP_DEREF_NEVER] = get_string('no');
-       $opt_deref[LDAP_DEREF_ALWAYS] = get_string('yes');
-       choose_from_menu($opt_deref, 'opt_deref', $config->opt_deref, LDAP_DEREF_NEVER, '');
+       $opt_deref['LDAP_DEREF_NEVER'] = get_string('no');
+       $opt_deref['LDAP_DEREF_ALWAYS'] = get_string('yes');
+       choose_from_menu($opt_deref, 'opt_deref', $config->opt_deref, '');
        if (isset($err['opt_deref'])) formerr($err['opt_deref']);
     ?>
     </td>