mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
missing a connect verification
This commit is contained in:
@@ -346,6 +346,11 @@ include "root.php";
|
||||
public function execute(){
|
||||
$sql = $this->sql;
|
||||
//echo $sql;
|
||||
//connect to the database if needed
|
||||
if (!$this->db) {
|
||||
$this->connect();
|
||||
}
|
||||
//get data from the database
|
||||
$prep_statement = $this->db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
|
||||
Reference in New Issue
Block a user