mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Database [Class]: Update for PHP 8.1
This commit is contained in:
@@ -2556,7 +2556,7 @@
|
|||||||
$k != 'insert_date' &&
|
$k != 'insert_date' &&
|
||||||
$k != 'update_user' &&
|
$k != 'update_user' &&
|
||||||
$k != 'update_date') {
|
$k != 'update_date') {
|
||||||
if (strlen($v) == 0) {
|
if (!isset($v) || strlen($v) == 0) {
|
||||||
$sql .= "null, ";
|
$sql .= "null, ";
|
||||||
}
|
}
|
||||||
elseif ($v === "now()") {
|
elseif ($v === "now()") {
|
||||||
@@ -2656,7 +2656,6 @@
|
|||||||
} // foreach schema_array
|
} // foreach schema_array
|
||||||
} // foreach main array
|
} // foreach main array
|
||||||
|
|
||||||
//save the message
|
|
||||||
$this->message = $message;
|
$this->message = $message;
|
||||||
|
|
||||||
//commit the atomic transaction
|
//commit the atomic transaction
|
||||||
@@ -2766,7 +2765,7 @@
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $this->message;
|
return $message;
|
||||||
} //save method
|
} //save method
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user