Update database.php
Changes for database -> delete() keeping for the moment for backwards compatibility.
This commit is contained in:
parent
26fd3f6bb7
commit
03180c9018
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Copyright (C) 2010 - 2015
|
||||
Copyright (C) 2010 - 2016
|
||||
All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
|
|
@ -478,7 +478,9 @@ include "root.php";
|
|||
if (!$this->db) {
|
||||
$this->connect();
|
||||
}
|
||||
|
||||
//delete from the database
|
||||
if (isset($this->table) && isset($this->where)) {
|
||||
$sql = "delete from ".$this->table." ";
|
||||
if ($this->where) {
|
||||
$i = 0;
|
||||
|
|
@ -497,6 +499,8 @@ include "root.php";
|
|||
$prep_statement->execute();
|
||||
unset($sql);
|
||||
unset($this->where);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public function count() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue