summaryrefslogtreecommitdiffstats
path: root/application/views/scripts
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-14 15:36:52 +0200
committerBjörn Geiger2011-09-14 15:36:52 +0200
commit4c427f61c44f3d712c12cabf01361dc835103f5b (patch)
tree91969e3df5229aa7020adb712c064f660064fd18 /application/views/scripts
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-4c427f61c44f3d712c12cabf01361dc835103f5b.tar.gz
poolctrl-4c427f61c44f3d712c12cabf01361dc835103f5b.tar.xz
poolctrl-4c427f61c44f3d712c12cabf01361dc835103f5b.zip
showRepots korrigiert
Diffstat (limited to 'application/views/scripts')
-rwxr-xr-xapplication/views/scripts/event/showreports.phtml11
1 files changed, 9 insertions, 2 deletions
diff --git a/application/views/scripts/event/showreports.phtml b/application/views/scripts/event/showreports.phtml
index 7f5065a..136d006 100755
--- a/application/views/scripts/event/showreports.phtml
+++ b/application/views/scripts/event/showreports.phtml
@@ -26,9 +26,16 @@ if(count($this->reportlist) > 0) {
<div class='details dispnone'>
<label>Finished:</label>
<div class='item'><?php echo date("m/d/Y H:i", $report->getCreated());?>&nbsp;</div>
- <?php if($report->getErrors()) { ?>
+ <?php if($report->getErrors()) {
+ $errors = json_decode($report->getErrors());
+ if(count($errors) > 0) {
+ $errorString = "";
+ foreach($errors as $k => $error) {
+ $errorString .= "Client " . $k . " (" . $this->clients[$k]->getIp() . "): " . $error . "<br />";
+ } ?>
<label>Errors:</label>
- <div class='item'><?php echo $report->getErrors(); ?>&nbsp;</div>
+ <div class='item'><?php echo $errorString; ?>&nbsp;</div>
+ <?php } ?>
<?php } ?>
</div>
</div>