Changeset 8352

Show
Ignore:
Timestamp:
09/09/09 14:00:11 (6 months ago)
Author:
p_lindheimer
Message:

fix sort order of old trunk dialrules in conversion re #3854

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.6/upgrades/2.6.0beta1/tables.php

    r8006 r8352  
    117117                } 
    118118        } 
     119} 
     120 
     121function __order_DialRules($a, $b) { 
     122  return substr($a,4) > substr($b,4); 
    119123} 
    120124 
     
    341345        foreach ($conf as $tname => $rules) { 
    342346                $tid = ltrim($tname,'trunk-'); 
    343                 ksort($rules); //make sure they are in order 
     347                uksort($rules,'__order_DialRules'); //make sure they are in order 
    344348                $seq = 1; 
    345349                foreach ($rules as $rule) {