Code Duplication    Length = 4-5 lines in 2 locations

programs/utilit/vacincl.php 2 locations

@@ 1196-1199 (lines=4) @@
1193
			{
1194
				$right = $agentRight->getRight();
1195
1196
				if (!$right->getRow()) {
1197
					bab_debug(sprintf('Failed to load right for agentRight %d, id_right=%d', $agentRight->id, $agentRight->id_right), DBG_ERROR);
1198
					continue;
1199
				}
1200
				
1201
				// ignorer les droits avec un solde a zero et qui sont 
1202
				
@@ 1241-1245 (lines=5) @@
1238
					$waiting = null;
1239
				}
1240
1241
				if (!$right->getRow())
1242
				{
1243
					bab_debug(sprintf('Failed to load right for agentRight %d, id_right=%d', $agentRight->id, $agentRight->id_right), DBG_ERROR);
1244
					continue;
1245
				}
1246
					
1247
				if (!isset($this->rights[$right->id]))
1248
				{