Fix some warnings more warnings.
This commit is contained in:
parent
20564c108f
commit
72c366518f
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Copyright (C) 2010 - 2014
|
Copyright (C) 2010 - 2016
|
||||||
All Rights Reserved.
|
All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -56,8 +56,7 @@ include "root.php";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
if (count($result) > 0) {
|
if (is_array($result)) foreach ($result as &$row) {
|
||||||
foreach ($result as &$row) {
|
|
||||||
$this->extension = $row["extension"];
|
$this->extension = $row["extension"];
|
||||||
$this->number_alias = $row["number_alias"];
|
$this->number_alias = $row["number_alias"];
|
||||||
$this->accountcode = $row["accountcode"];
|
$this->accountcode = $row["accountcode"];
|
||||||
|
|
@ -65,7 +64,6 @@ include "root.php";
|
||||||
$this->outbound_caller_id_name = $row["outbound_caller_id_name"];
|
$this->outbound_caller_id_name = $row["outbound_caller_id_name"];
|
||||||
$this->outbound_caller_id_number = $row["outbound_caller_id_number"];
|
$this->outbound_caller_id_number = $row["outbound_caller_id_number"];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
unset ($prep_statement);
|
unset ($prep_statement);
|
||||||
|
|
||||||
//set the dial string
|
//set the dial string
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Copyright (C) 2010
|
Copyright (C) 2010 - 2016
|
||||||
All Rights Reserved.
|
All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -77,8 +77,7 @@ include "root.php";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
if (count($result) > 0) {
|
if (is_array($result)) foreach ($result as &$row) {
|
||||||
foreach ($result as &$row) {
|
|
||||||
if (strlen($this->extension_uuid) == 0) {
|
if (strlen($this->extension_uuid) == 0) {
|
||||||
$this->extension_uuid = $row["extension_uuid"];
|
$this->extension_uuid = $row["extension_uuid"];
|
||||||
}
|
}
|
||||||
|
|
@ -91,7 +90,6 @@ include "root.php";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
unset ($prep_statement);
|
unset ($prep_statement);
|
||||||
|
|
||||||
//set the dial string
|
//set the dial string
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Copyright (C) 2010 - 2014
|
Copyright (C) 2010 - 2016
|
||||||
All Rights Reserved.
|
All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -244,15 +244,13 @@ include "root.php";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
if (count($result) > 0) {
|
if (is_array($result)) foreach ($result as &$row) {
|
||||||
foreach ($result as &$row) {
|
|
||||||
$this->extension = $row["extension"];
|
$this->extension = $row["extension"];
|
||||||
$this->accountcode = $row["accountcode"];
|
$this->accountcode = $row["accountcode"];
|
||||||
$this->toll_allow = $row["toll_allow"];
|
$this->toll_allow = $row["toll_allow"];
|
||||||
$this->outbound_caller_id_name = $row["outbound_caller_id_name"];
|
$this->outbound_caller_id_name = $row["outbound_caller_id_name"];
|
||||||
$this->outbound_caller_id_number = $row["outbound_caller_id_number"];
|
$this->outbound_caller_id_number = $row["outbound_caller_id_number"];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//determine whether to update the dial string
|
//determine whether to update the dial string
|
||||||
$sql = "select * from v_follow_me ";
|
$sql = "select * from v_follow_me ";
|
||||||
|
|
@ -261,13 +259,11 @@ include "root.php";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
if (count($result) > 0) {
|
if (is_array($result)) foreach ($result as &$row) {
|
||||||
foreach ($result as &$row) {
|
|
||||||
$follow_me_uuid = $row["follow_me_uuid"];
|
$follow_me_uuid = $row["follow_me_uuid"];
|
||||||
$this->cid_name_prefix = $row["cid_name_prefix"];
|
$this->cid_name_prefix = $row["cid_name_prefix"];
|
||||||
$this->cid_number_prefix = $row["cid_number_prefix"];
|
$this->cid_number_prefix = $row["cid_number_prefix"];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
unset ($prep_statement);
|
unset ($prep_statement);
|
||||||
|
|
||||||
//add follow me
|
//add follow me
|
||||||
|
|
@ -345,7 +341,7 @@ include "root.php";
|
||||||
$dial_string .= ",toll_allow='".$this->toll_allow."'";
|
$dial_string .= ",toll_allow='".$this->toll_allow."'";
|
||||||
$dial_string .= "}";
|
$dial_string .= "}";
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($result as &$row) {
|
if (is_array($result)) foreach ($result as &$row) {
|
||||||
if ($x > 0) {
|
if ($x > 0) {
|
||||||
$dial_string .= ",";
|
$dial_string .= ",";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue