Update database.php

This commit is contained in:
FusionPBX 2017-03-16 22:20:11 -06:00 committed by GitHub
parent 186ece4940
commit fa52a380bb
1 changed files with 7 additions and 8 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Copyright (C) 2010 - 2016
Copyright (C) 2010 - 2017
All Rights Reserved.
Contributor(s):
@ -579,7 +579,6 @@ include "root.php";
}
*/
//-------------------
//loop through the array
if (is_array($new_array)) {
foreach ($new_array as $schema_name => $schema_array) {
@ -1141,7 +1140,7 @@ include "root.php";
//print_r($new_array);
//echo "</pre>\n";
//exit;
//------------------------------------------
//loop through the array
if (is_array($new_array)) foreach ($new_array as $schema_name => $schema_array) {
@ -1478,7 +1477,7 @@ include "root.php";
if ($action == "add") {
if (permission_exists($child_name.'_add')) {
//determine if child or parent key exists
$child_key_name = $this->singular($child_name).'_uuid';
$child_key_name = $child_name.'_uuid';
$parent_key_exists = false;
$child_key_exists = false;
if (is_array($row)) {