Ticket #3021: func.ringgroups.patch
| File func.ringgroups.patch, 1.5 kB (added by Nick_Lewis, 4 months ago) |
|---|
-
after/func.ringgroups.php
old new 202 202 } 203 203 print_r($extens); 204 204 205 $grppre .= "*"; //overcomes for group prefix the mysql bug with trailing spaces (* added). 205 206 $sql = "INSERT INTO ringgroups (grpnum, strategy, grptime, grppre, grplist, annmsg_id, postdest, description, alertinfo, needsconf, remotealert_id, toolate_id, ringing, cwignore, cfignore) VALUES ('".str_replace("'","''",$grpnum)."', '".str_replace("'", "''", $strategy)."', ".str_replace("'", "''", $grptime).", '".str_replace("'", "''", $grppre)."', '".str_replace("'", "''", $grplist)."', '".str_replace("'", "''", $annmsg_id)."', '".str_replace("'", "''", $postdest)."', '".str_replace("'", "''", $desc)."', '".str_replace("'", "''", $alertinfo)."', '$needsconf', '$remotealert_id', '$toolate_id', '$ringing', '$cwignore', '$cfignore')"; 206 207 $results = sql($sql); 207 208 return true; … … 278 279 279 280 function ringgroups_get($grpnum) { 280 281 $results = sql("SELECT grpnum, strategy, grptime, grppre, grplist, annmsg_id, postdest, description, alertinfo, needsconf, remotealert_id, toolate_id, ringing, cwignore, cfignore FROM ringgroups WHERE grpnum = '".str_replace("'", "''", $grpnum)."'","getRow",DB_FETCHMODE_ASSOC); 282 $results['grppre'] = substr($results['grppre'],0,-1); //overcomes for group prefix the mysql bug with trailing spaces (* removed). 281 283 return $results; 282 284 } 283 285 ?>
