Update extension.php

Remove the extra exists method added a few hours ago.
This commit is contained in:
FusionPBX
2016-11-24 11:03:13 -07:00
committed by GitHub
parent e3e5e2fcfc
commit 9cac833ee3

View File

@@ -518,18 +518,6 @@ if (!class_exists('extension')) {
$_SESSION["reload_xml"] = true;
}
}
// returns true if the domain extension already exists
public function exists($domain_uuid, $extension) {
$sql = "select * from v_extensions where domain_uuid = '".$domain_uuid."' ";
$sql .= "and extension='".$extension."'";
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
return count($result) != 0;
}
}
}