From 17f58bffc81f5961837279633c3b7b0ee773105e Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 9 Jun 2010 14:46:37 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.flash.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/ws/Controlleur/class.ws.flash.php b/inc/ws/Controlleur/class.ws.flash.php index 5b5bb2ed6..0c37aef82 100644 --- a/inc/ws/Controlleur/class.ws.flash.php +++ b/inc/ws/Controlleur/class.ws.flash.php @@ -165,6 +165,9 @@ class wsFlash extends cubeFlashGateway { $t->addAttribute('nom', $theme->nom); if (isset($book) && $theme->theme_id == $book->theme) { $t->addAttribute('selected', '1'); + $mine=true; + }else{ + $mine=false; } if ($core->user->ws_grade == 4) { $right = 'w'; @@ -176,7 +179,7 @@ class wsFlash extends cubeFlashGateway { $right = '-'; } $t->addAttribute('right', $right); - $t->addAttribute('books', $theme->nbBooks); + $t->addAttribute('books', ($theme->nbBooks)-($mine?'1':'0')); } } -- 2.39.5