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 914a073489
commit 6c7228e0cc

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();