Update database.php

This commit is contained in:
FusionPBX
2017-03-16 22:20:11 -06:00
committed by GitHub
parent 69c0b9a4f8
commit 0fb9850d07
+3 -4
View File
@@ -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 - 2016 Copyright (C) 2010 - 2017
All Rights Reserved. All Rights Reserved.
Contributor(s): Contributor(s):
@@ -579,7 +579,6 @@ include "root.php";
} }
*/ */
//-------------------
//loop through the array //loop through the array
if (is_array($new_array)) { if (is_array($new_array)) {
foreach ($new_array as $schema_name => $schema_array) { foreach ($new_array as $schema_name => $schema_array) {
@@ -1141,7 +1140,7 @@ include "root.php";
//print_r($new_array); //print_r($new_array);
//echo "</pre>\n"; //echo "</pre>\n";
//exit; //exit;
//------------------------------------------
//loop through the array //loop through the array
if (is_array($new_array)) foreach ($new_array as $schema_name => $schema_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 ($action == "add") {
if (permission_exists($child_name.'_add')) { if (permission_exists($child_name.'_add')) {
//determine if child or parent key exists //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; $parent_key_exists = false;
$child_key_exists = false; $child_key_exists = false;
if (is_array($row)) { if (is_array($row)) {