Changeset 0f1faec in github
- Timestamp:
- Aug 11, 2011 6:24:29 PM (23 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- a170304
- Parents:
- 077cfda
- Location:
- program
- Files:
-
- 2 edited
-
include/rcube_ldap.php (modified) (3 diffs)
-
js/app.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_ldap.php
r4d9f620 r0f1faec 729 729 $replacedata = array(); 730 730 $deletedata = array(); 731 732 // flatten composite fields in $record 733 if (is_array($record['address'])) { 734 foreach ($record['address'] as $i => $struct) { 735 foreach ($struct as $col => $val) { 736 $record[$col][$i] = $val; 737 } 738 } 739 } 731 740 732 741 foreach ($this->fieldmap as $col => $fld) { … … 844 853 if (!is_array($ids)) { 845 854 // Not an array, break apart the encoded DNs. 846 $ dns = explode(',', $ids);855 $ids = explode(',', $ids); 847 856 } // end if 848 857 849 foreach ($ dns as $id) {858 foreach ($ids as $id) { 850 859 $dn = base64_decode($id); 851 860 $this->_debug("C: Delete [dn: $dn]"); … … 870 879 } // end foreach 871 880 872 return count($ dns);881 return count($ids); 873 882 } 874 883 -
program/js/app.js
r1871993 r0f1faec 643 643 form.action += '?_reload=1'; 644 644 } 645 else if ((input = $("input[name='_name']", form)) &&input.length && input.val() == '') {646 alert(this.get_label('nonamewarning'));647 input.focus();648 break;649 }650 645 else if (this.task == 'settings' && (this.env.identities_level % 2) == 0 && 651 646 (input = $("input[name='_email']", form)) && input.length && !rcube_check_email(input.val()) … … 4428 4423 { 4429 4424 var n, buttons = this.buttons['upload-photo']; 4430 for (n=0; n < buttons .length; n++)4425 for (n=0; n < buttons && buttons.length; n++) 4431 4426 $('#'+buttons[n].id).html(this.get_label(id == '-del-' ? 'addphoto' : 'replacephoto')); 4432 4427
Note: See TracChangeset
for help on using the changeset viewer.
