Fix systematic errors in pagination, sucursal warnings, and fatal count() errors across multiple modules
This commit is contained in:
@@ -1,17 +1,25 @@
|
||||
<?php
|
||||
|
||||
if($_SESSION['tipoUsr'] == 'Cliente'){
|
||||
|
||||
$tipoUsr = $_SESSION['tipoUsr'] ?? '';
|
||||
|
||||
if($tipoUsr == 'Cliente'){
|
||||
|
||||
$Usr['type'] = 'cliente';
|
||||
|
||||
}else{
|
||||
|
||||
$Usr = $user->Info();
|
||||
if(!is_array($Usr)) {
|
||||
$Usr = array();
|
||||
$Usr['type'] = '';
|
||||
$Usr['nombre'] = 'Visitante';
|
||||
$Usr['sucursal'] = '';
|
||||
}
|
||||
|
||||
if( $Usr['type'] == 'gerente' ||
|
||||
if( isset($Usr['type']) && ($Usr['type'] == 'gerente' ||
|
||||
$Usr['type'] == 'facturacion' ||
|
||||
$Usr['type'] == 'vendedor' ||
|
||||
$Usr['type'] == 'cajero'
|
||||
$Usr['type'] == 'cajero')
|
||||
){
|
||||
$sucursal->setSucursalId($_SESSION['idSuc']);
|
||||
$Usr['sucursal'] = utf8_decode(urldecode($sucursal->GetNameById()));
|
||||
|
||||
Reference in New Issue
Block a user