linccce

Problem Undefined Variable

May 8th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. PHP notice
  2.  
  3. Undefined variable: isdirb
  4.  
  5. C:\wamp\www\eproma2\protected\models\Company.php(567)
  6.  
  7. 555 if ($isejo < $atejo)
  8. 556 {
  9. 557 echo '-------<br/>';
  10. 558 $pertrauk = date_diff($isejo, $atejo);
  11. 559 if (is_object($isdirb))
  12. 560 {
  13. 561 echo $pertrauk->format('H:i:s').' = '.$atejo->format('H:i:s').' - '.$isejo->format('H:i:s').'<br/>';
  14. 562 }
  15. 563 echo '-------<br/>';
  16. 564 }
  17. 565 }
  18. 566 }
  19. 567 if (is_object($isdirb) && is_object($pertrauk) && is_object($darbo_laikas) && is_object($pertraukos_laikas))
  20. 568 {
  21. 569 $darbo_laikas->add($isdirb);
  22. 570 $pertraukos_laikas->add($pertrauk);
  23. 571 }
  24. 572 $kint++;
  25. 573 }
  26. 574 } echo '***********<br/>';
  27. 575 $lentele .= '<tr><td colspan=2></td><td>Darbo laikas:</td><td>'.$isdirb->format('H:i:s').'</td></tr>';
  28. 576 $lentele .= '<tr><td colspan=2></td><td>Pertraukos laikas:</td><td>'.$pertrauk->format('H:i:s').'</td></tr>';
  29. 577 }
  30. 578
  31. 579 }
Advertisement
Add Comment
Please, Sign In to add comment