Ticket #4401: core-functions.inc.php.patch
| File core-functions.inc.php.patch, 1.0 kB (added by ianf, 2 years ago) |
|---|
-
functions.inc.php
old new 4730 4730 4731 4731 $confitem['account'] = $channelid; 4732 4732 $gimmieabreak = nl2br($config); 4733 $lines = split('<br />',$gimmieabreak);4733 $lines = preg_split('/<br \/>/',$gimmieabreak); 4734 4734 foreach ($lines as $line) { 4735 4735 $line = trim($line); 4736 if (count( split('=',$line)) > 1) {4737 $tmp = split('=',$line,2);4736 if (count(preg_split('/=/',$line)) > 1) { 4737 $tmp = preg_split('/=/',$line,2); 4738 4738 $key=trim($tmp[0]); 4739 4739 $value=trim($tmp[1]); 4740 4740 if (isset($confitem[$key]) && !empty($confitem[$key])) … … 5782 5782 $dids = core_did_list('extension'); 5783 5783 $did_count = 0; 5784 5784 foreach ($dids as $did) { 5785 $did_dest = split(',',$did['destination']);5785 $did_dest = preg_split('/,/',$did['destination']); 5786 5786 if (isset($did_dest[1]) && $did_dest[1] == $extdisplay) { 5787 5787 5788 5788 $did_title = ($did['description'] != '') ? $did['description'] : _("DID / CID");
