fix require=>require_once for User.php. Use getBodyTopHTML so that we get the error reporting

This commit is contained in:
Isaac Connor 2021-03-21 09:18:47 -04:00
parent d0adaeaabe
commit cc455e5d74
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ if ( !canEdit('System') && !$selfEdit ) {
return; return;
} }
require('includes/User.php'); require_once('includes/User.php');
if ( $_REQUEST['uid'] ) { if ( $_REQUEST['uid'] ) {
if ( !($newUser = new ZM\User($_REQUEST['uid'])) ) { if ( !($newUser = new ZM\User($_REQUEST['uid'])) ) {
@ -54,9 +54,9 @@ foreach ( dbFetchAll($sql) as $monitor ) {
$focusWindow = true; $focusWindow = true;
xhtmlHeaders(__FILE__, translate('User').' - '.$newUser->Username()); xhtmlHeaders(__FILE__, translate('User').' - '.$newUser->Username());
echo getBodyTopHTML();
echo getNavBarHTML();
?> ?>
<body>
<?php echo getNavBarHTML() ?>
<div id="page"> <div id="page">
<div class="w-100"> <div class="w-100">
<div class="float-left pl-3 pt-1"> <div class="float-left pl-3 pt-1">