Code Duplication    Length = 4-5 lines in 2 locations

programs/utilit/vacincl.php 2 locations

@@ 1165-1168 (lines=4) @@
1162
			{
1163
				$right = $agentRight->getRight();
1164
1165
				if (!$right->getRow()) {
1166
					bab_debug(sprintf('Failed to load right for agentRight %d, id_right=%d', $agentRight->id, $agentRight->id_right), DBG_ERROR);
1167
					continue;
1168
				}
1169
				
1170
				// ignorer les droits avec un solde a zero et qui sont 
1171
				
@@ 1210-1214 (lines=5) @@
1207
					$waiting = null;
1208
				}
1209
1210
				if (!$right->getRow())
1211
				{
1212
					bab_debug(sprintf('Failed to load right for agentRight %d, id_right=%d', $agentRight->id, $agentRight->id_right), DBG_ERROR);
1213
					continue;
1214
				}
1215
					
1216
				if (!isset($this->rights[$right->id]))
1217
				{