Update app_defaults.php

This commit is contained in:
FusionPBX 2019-02-09 07:55:51 -07:00 committed by GitHub
parent 6687c6ce34
commit 9afee1f20b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ if ($domains_processed == 1) {
$group->defaults();
//find rows that have a null group_uuid and set the correct group_uuid
$sql = "select * from v_group_users ";
$sql = "select * from v_user_groups ";
$sql .= "where group_uuid is null; ";
$prep_statement = $db->prepare(check_sql($sql));
if ($prep_statement) {
@ -49,7 +49,7 @@ if ($domains_processed == 1) {
unset ($prep_statement_sub);
$group_uuid = $sub_result['group_uuid'];
//set the group_uuid
$sql = "update v_group_users set ";
$sql = "update v_user_groups set ";
$sql .= "group_uuid = '".$group_uuid."' ";
$sql .= "where group_user_uuid = '".$row['group_user_uuid']."'; ";
$db->exec($sql);
@ -62,4 +62,4 @@ if ($domains_processed == 1) {
}
?>
?>