Changeset 3962

Show
Ignore:
Timestamp:
05/06/07 06:36:13 (6 years ago)
Author:
diego_iastrubni
Message:

consistant code - first sqlite3, then others. remove duplicated line.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.2/amp_conf/htdocs/admin/modules/core/functions.inc.php

    r3961 r3962  
    18401840  } 
    18411841   
    1842   $sql = "SELECT DISTINCT SUBSTRING(context,7) FROM extensions WHERE context LIKE 'outrt-%' ORDER BY context "; 
    1843   if ( $amp_conf["AMPDBENGINE"] != "sqlite3") 
     1842  if ( $amp_conf["AMPDBENGINE"] == "sqlite3") 
     1843    $sql = "SELECT DISTINCT context FROM extensions WHERE context LIKE 'outrt-%' ORDER BY context "; 
     1844  else 
    18441845    $sql = "SELECT DISTINCT SUBSTRING(context,7) FROM extensions WHERE context LIKE 'outrt-%' ORDER BY context "; 
    1845   else 
    1846     $sql = "SELECT DISTINCT context FROM extensions WHERE context LIKE 'outrt-%' ORDER BY context "; 
    18471846 
    18481847        // we SUBSTRING() to remove "outrt-"