Ticket #3021: func.ringgroups.patch

File func.ringgroups.patch, 1.5 kB (added by Nick_Lewis, 4 months ago)

ok ok here is a proper patch against head

  • after/func.ringgroups.php

    old new  
    202202        } 
    203203        print_r($extens); 
    204204 
     205        $grppre .= "*"; //overcomes for group prefix the mysql bug with trailing spaces (* added). 
    205206        $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')"; 
    206207        $results = sql($sql); 
    207208        return true; 
     
    278279 
    279280function ringgroups_get($grpnum) { 
    280281        $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). 
    281283        return $results; 
    282284} 
    283285?> 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads