Update extension.php
Remove the extra exists method added a few hours ago.
This commit is contained in:
parent
e3e5e2fcfc
commit
9cac833ee3
|
|
@ -518,18 +518,6 @@ if (!class_exists('extension')) {
|
||||||
$_SESSION["reload_xml"] = true;
|
$_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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue