Changeset 5235

Show
Ignore:
Timestamp:
11/09/07 17:27:38 (6 years ago)
Author:
p_lindheimer
Message:

quote id to handle non-numeric ids in iax table

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/bin/libfreepbx.confgen.php

    r4993 r5235  
    152152    fwrite($iax_conf_fh,"[$account]\n"); 
    153153 
    154     $sql = "SELECT keyword,data from $table_name where id=$id and keyword <> 'account' and flags <> 1 order by keyword DESC"; 
     154    $sql = "SELECT keyword,data from $table_name where id='$id' and keyword <> 'account' and flags <> 1 order by keyword DESC"; 
    155155    $results2 = $db->getAll($sql, DB_FETCHMODE_ASSOC); 
    156156    if(DB::IsError($results2)) {