mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Update extension.php
Remove the extra exists method added a few hours ago.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user