Changeset 3744

Show
Ignore:
Timestamp:
02/06/07 16:22:56 (2 years ago)
Author:
naftali5
Message:

fix queues retrieve conf bug part of #1659

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.2/amp_conf/bin/retrieve_queues_conf_from_mysql.pl

    r3697 r3744  
    5858} 
    5959 
    60 $statement = "SELECT keyword,data from $table_name where id=0 and keyword <> 'account'"; 
     60$statement = "SELECT keyword,data from $table_name where id='-1' and keyword <> 'account'"; 
    6161my $result = $dbh->selectall_arrayref($statement); 
    6262unless ($result) { 
     
    100100        my $id = @{ $row }[1]; 
    101101        print EXTEN "[$account]\n"; 
    102         $statement = "SELECT keyword,data from $table_name where id=$id and keyword <> 'account' and keyword <> 'rtone' order by flags"; 
     102        $statement = "SELECT keyword,data from $table_name where id='$id' and keyword <> 'account' and keyword <> 'rtone' order by flags"; 
    103103        my $result = $dbh->selectall_arrayref($statement); 
    104104        unless ($result) { 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads