]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 14 Jun 2011 15:39:00 +0000 (15:39 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 14 Jun 2011 15:39:00 +0000 (15:39 +0000)
inc/ws/Controlleur/class.ws.url.php

index e32ea8dce2af40664b17b6f2cad0effd4ac2811f..9753265336ef605b5a8209c6674176809ff09977 100644 (file)
@@ -73,7 +73,7 @@ class wsUrl {
                        $res .= '<th>' . commonUrl::orderby(__('Status'), 'status', $settings, 'sort' . $change) . '</th>';\r
                        $res.='<th>' . __('V') . '</th>';\r
                }\r
-               $res .= str_repeat('<th class="min"></th>', $droits->creation ? 5 : 4);\r
+               $res .= str_repeat('<th class="min"></th>', 5);\r
                $res .= '</tr>';\r
                $i = 0;\r
 \r
@@ -128,8 +128,10 @@ class wsUrl {
                        } else {\r
                                $res.='<td></td>';\r
                        }\r
-                       if ($droits->creation) {\r
+                       if ($droits->creation && $book->status<0) {\r
                                $res .= '<td class="bouton"><a href="#" rel="supprimeBook/' . $book->book_id . '" class="ajax" title="' . __('Êtes-vous certain de vouloir supprimer cette publication ?') . '">' . $btDel . '</a></td>';\r
+                       }else{\r
+                               $res.='<td></td>';\r
                        }\r
                        $res .= '</tr>';\r
                        $i++;\r