Guest User

Untitled

a guest
Jan 22nd, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. Uncaught TypeError: Cannot read property 'Dia' of null
  2. at Object.success (iDvsEnvelope.php?operation=insert:1919)
  3. at u (main-bundle.js:283)
  4. at Object.fireWith [as resolveWith] (main-bundle.js:283)
  5. at n (main-bundle.js:284)
  6. at XMLHttpRequest.t (main-bundle.js:284)
  7.  
  8. if (GetApplication()->isGetValueSet('IdUnicoop')) {
  9. $IdUnicoop = GetApplication()->GetGETValue('IdUnicoop');
  10. $sql = "SELECT * FROM dvsMaloteDias WHERE dvsMaloteDias.IdUnicoop = $IdUnicoop";
  11. $queryResult = $this->GetConnection()->fetchAll($sql);
  12. $ContReg = count($queryResult);
  13.  
  14. if ($ContReg > 0) {
  15.  
  16. foreach ($queryResult as $ListaDias) {
  17.  
  18. if ($ListaDias['Segunda'] == 1) {
  19. if ($TemMalote == "") {
  20. $TemMalote = "Segunda";
  21. $resultado = array ('Dia' => $TemMalote );
  22. } else {
  23. $TemMalote = $TemMalote . ", " . "Segunda";
  24. $resultado = array ('Dia' => $TemMalote );
  25. }
  26. }
  27.  
  28. }
  29.  
  30. }
  31.  
  32. echo json_encode($resultado);
  33. exit;
Add Comment
Please, Sign In to add comment