Skip to content

Commit

Permalink
Merge pull request #660 from andrey-utkin/users-page-logs-errors
Browse files Browse the repository at this point in the history
Fix errors logged on Users page
  • Loading branch information
curtishall authored Feb 15, 2024
2 parents 41581c6 + 7e46efd commit 31fdffc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions www/template/ajax/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@
<tr>
</thead>
<tbody>
<?php
foreach($dvr_users->data as $id => $info){
$email_list = ''; $emails = ''; $email = ''; $tmp = '';
$emails = explode('|', $info['email']);
foreach($emails as $id => $email){
$email = explode(':', $email);
$tmp[$id] = $email[0];
}
$email_list = implode(', ', $tmp);
?>
<?php
foreach($dvr_users->data as $id => $info){
$email_list = ''; $emails = ''; $email = ''; $tmp = array();
$emails = explode('|', $info['email']);
foreach($emails as $id => $email){
$email = explode(':', $email);
$tmp[$id] = $email[0];
}
$email_list = implode(', ', $tmp);
?>
<tr class="users-list-bl-item ajax-content" data-url="/users?id=<?php echo $info['id']; ?>">
<td><?php echo $info['name']; ?></td><td><?php echo $info['username']; ?></td>
<td><?php echo $email_list; ?></td>
Expand Down

0 comments on commit 31fdffc

Please sign in to comment.