Code Duplication    Length = 5-5 lines in 2 locations

programs/utilit/right.act.php 2 locations

@@ 212-216 (lines=5) @@
209
		{
210
			// tests de la quantite
211
			
212
			if( !is_numeric(self::$post['quantity']))
213
			{
214
				$babBody->addError(absences_translate("You must specify a correct quantity"));
215
				return false;
216
			}
217
			
218
			if( 0 > (int) self::$post['quantity'])
219
			{
@@ 218-222 (lines=5) @@
215
				return false;
216
			}
217
			
218
			if( 0 > (int) self::$post['quantity'])
219
			{
220
				$babBody->addError(absences_translate("You must specify a correct quantity"));
221
				return false;
222
			}
223
		}
224
		
225
		if (0 !== (int) self::$post['id_rgroup'])