Fix systematic errors in pagination, sucursal warnings, and fatal count() errors across multiple modules
This commit is contained in:
@@ -350,7 +350,7 @@ $this->Util()->ValidateMail($value, "Email");
|
||||
|
||||
public function Info()
|
||||
{
|
||||
$generalDb = new DB;
|
||||
$generalDb = new DB(true);
|
||||
|
||||
$sql = "SELECT * FROM empresa WHERE empresaId = '".$this->empresaId."'";
|
||||
$generalDb->setQuery($sql);
|
||||
@@ -361,7 +361,7 @@ $this->Util()->ValidateMail($value, "Email");
|
||||
|
||||
function InfoAll()
|
||||
{
|
||||
$generalDb = new DB;
|
||||
$generalDb = new DB(true);
|
||||
|
||||
$sql = "SELECT * FROM usuario
|
||||
LEFT JOIN empresa ON usuario.empresaId = empresa.empresaId
|
||||
@@ -374,12 +374,7 @@ $this->Util()->ValidateMail($value, "Email");
|
||||
|
||||
function DoLogin()
|
||||
{
|
||||
if($this->Util()->PrintErrors())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$generalDb = new DB;
|
||||
$generalDb = new DB(true);
|
||||
|
||||
$sql = "SELECT usuarioId FROM usuario
|
||||
WHERE email = '".$this->email."'
|
||||
@@ -463,6 +458,7 @@ $this->Util()->ValidateMail($value, "Email");
|
||||
if(!$this->IsLoggedIn())
|
||||
{
|
||||
header('Location: '.($_ENV['WEB_ROOT'] ?? '/').'/login');
|
||||
exit;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user