Changeset 5381
- Timestamp:
- 12/10/07 07:53:24 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
contributed_modules/modules/vmblast/functions.inc.php
r5380 r5381 139 139 global $db; 140 140 141 $ xtns = explode("&",$grplist);142 foreach ($ xtnsas $key => $value) {143 $ xtns[$key] = addslashes(trim($value));141 $grplist = $grplist; 142 foreach ($grplist as $key => $value) { 143 $grplist[$key] = addslashes(trim($value)); 144 144 } 145 145 // Sanity check input. 146 146 147 147 $compiled = $db->prepare("INSERT INTO vmblast_groups (grpnum, ext) values ('$grpnum',?)"); 148 $result = $db->executeMultiple($compiled,$ xtns);148 $result = $db->executeMultiple($compiled,$grplist); 149 149 if(DB::IsError($result)) { 150 150 die_freepbx($result->getDebugInfo()."<br><br>".'error adding to vmblast_groups table'); … … 188 188 die_freepbx($grplist->getDebugInfo()."<br><br>".'selecting from vmblast_groups table'); 189 189 } 190 $results['grplist'] = implode('&',$grplist);190 $results['grplist'] = $grplist; 191 191 192 192 $sql = "SELECT * FROM admin WHERE variable='default_vmblast_grp' AND value='$grpnum'"; contributed_modules/modules/vmblast/page.vmblast.php
r5380 r5381 61 61 $conflict_url = framework_display_extension_usage_alert($usage_arr); 62 62 63 } else if (vmblast_add($account, implode("&",$grplist),$description)) {63 } else if (vmblast_add($account,$grplist,$description)) { 64 64 needreload(); 65 65 redirect_standard(); … … 77 77 if ($action == 'editGRP') { 78 78 vmblast_del($account); 79 vmblast_add($account, implode("&",$grplist),$description,$audio_label,$password,$default_group);79 vmblast_add($account,$grplist,$description,$audio_label,$password,$default_group); 80 80 needreload(); 81 81 redirect_standard('extdisplay'); … … 107 107 // We need to populate grplist with the existing extension list. 108 108 $thisgrp = vmblast_get(ltrim($extdisplay,'GRP-')); 109 $grpliststr = $thisgrp['grplist']; 110 $grplist = explode("&", $grpliststr); 109 $grplist = $thisgrp['grplist']; 111 110 $description = $thisgrp['description']; 112 111 $audio_label = $thisgrp['audio_label'];
