Check variables correctly to see if ringback is already set.

This commit is contained in:
Mark Crane 2013-02-01 04:40:54 +00:00
parent c62a03b6ce
commit d7f68194b9
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ EOD;
if ($domains_processed == 1) {
//set the ringback
$sql = "select count(*) as num_rows from v_vars ";
$sql .= "where var_name = 'domain_uuid' ";
$sql .= "where var_name = 'ringback' ";
$prep_statement = $db->prepare($sql);
if ($prep_statement) {
$prep_statement->execute();