Show
Ignore:
Timestamp:
04/07/09 10:03:01 (4 years ago)
Author:
pnlarsson
Message:

Sort sccp phones after extension

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contributed_modules/modules/chan_sccp/functions.inc.php

    r7573 r7574  
    5252function chan_sccp_list() { 
    5353  global $db; 
    54   $sql = "SELECT id, mac, ext, type FROM sccp_mac ORDER BY mac "; 
     54   
     55  $sql = "SELECT id, mac, ext, type  
     56          FROM sccp_mac  
     57          ORDER BY ext"; 
     58   
    5559  $results = $db->getAll($sql, DB_FETCHMODE_ASSOC); 
    5660  if(DB::IsError($results)) { 
     
    6266function chan_sccp_get($chan_sccp_id) { 
    6367  global $db; 
    64   $sql = "SELECT id, mac, ext, type, speeds FROM sccp_mac WHERE id = " . (int) $chan_sccp_id; 
     68   
     69  $sql = "SELECT id, mac, ext, type, speeds  
     70          FROM sccp_mac  
     71          WHERE id = " . (int) $chan_sccp_id; 
     72           
    6573  $row = $db->getRow($sql, DB_FETCHMODE_ASSOC); 
    6674  if(DB::IsError($row)) {