show user's jobs when owner is not indexed
authorJiří Filipovič <fila@ics.muni.cz>
Mon, 7 Mar 2011 13:13:14 +0000 (13:13 +0000)
committerJiří Filipovič <fila@ics.muni.cz>
Mon, 7 Mar 2011 13:13:14 +0000 (13:13 +0000)
org.glite.lb.server/src/lb_html.c

index 42de4b7..c48e14d 100644 (file)
@@ -60,7 +60,13 @@ int edg_wll_UserInfoToHTML(edg_wll_Context ctx UNUSED_VAR, edg_wlc_JobId *jobsOu
         while (jobsOut && jobsOut[i]) {
                 char    *chid = edg_wlc_JobIdUnparse(jobsOut[i]);
 
-               if ((statsOut[i].jobtype != EDG_WLL_STAT_FILE_TRANSFER_COLLECTION 
+               if (! statsOut){
+                        asprintf(&pomA,"%s\t\t <li><a href=\"%s\">%s</a></li>\r\n",
+                                pomB, chid,chid);
+                        free(pomB);
+                        pomB = pomA;
+               }
+               else if ((statsOut[i].jobtype != EDG_WLL_STAT_FILE_TRANSFER_COLLECTION 
                        && statsOut[i].jobtype != EDG_WLL_STAT_FILE_TRANSFER 
                        && ! statsOut[i].parent_job )
                        || ((statsOut[i].jobtype == EDG_WLL_STAT_FILE_TRANSFER_COLLECTION