Ticket #2167: freepbx_core_mysql3.diff.txt

File freepbx_core_mysql3.diff.txt, 0.9 kB (added by julianjm, 5 years ago)
Line 
1 --- functions.inc.php.orig      2007-07-27 20:40:52.000000000 +0100
2 +++ functions.inc.php   2007-07-27 20:41:16.000000000 +0100
3 @@ -453,7 +453,7 @@
4                         $ext->add('outbound-allroutes', 'foo', '', new ext_noop('bar'));
5                         foreach($outrts as $outrt) {
6                                 $ext->addInclude('outbound-allroutes',$outrt['application']);
7 -                               $sql = "SELECT * FROM extensions where context = '".$outrt['application']."' ORDER BY extension, CAST(priority AS UNSIGNED) ASC";
8 +                               $sql = "SELECT * FROM extensions where context = '".$outrt['application']."' ORDER BY extension, priority+0 ASC";
9                                 $thisrt = sql($sql,"getAll",DB_FETCHMODE_ASSOC);
10                                 foreach($thisrt as $exten) {
11                                         //if emergencyroute, then set channel var