Code Duplication    Length = 12-12 lines in 2 locations

programs/utilit/agent.ui.php 1 location

@@ 454-465 (lines=12) @@
451
		return false;
452
	}
453
	
454
	public function getHtml()
455
	{
456
		$babBody = bab_getInstance('babBody');
457
		
458
		if ($this->res->count() === 0)
459
		{
460
			$babBody->addError(absences_translate('There are no records yet for this user'));
461
			return '';
462
		}
463
		
464
		return bab_printTemplate($this, absences_addon()->getRelativePath()."agent.html", "movement");
465
	}
466
}
467
468

programs/utilit/vacincl.php 1 location

@@ 538-549 (lines=12) @@
535
        return false;
536
    }
537
538
    public function getHtml()
539
    {
540
        $babBody = bab_getInstance('babBody');
541
542
        if ($this->res->count() === 0)
543
        {
544
            $babBody->addError(absences_translate('There are no records yet'));
545
            return '';
546
        }
547
548
        return bab_printTemplate($this, absences_addon()->getRelativePath()."agent.html", "movement");
549
    }
550
}
551
552