Code Duplication    Length = 5-5 lines in 2 locations

admin/manage.php 1 location

@@ 242-246 (lines=5) @@
239
        	foreach( $frarray as $frame ) {
240
				$action_edit = "<a href='".$baseurl."?op=edit&frameid=".$frame->getVar('frame_frameid')."'><img src='../assets/images/edit.png' alt='"._AM_MYIFRAME_EDIT."'></a>";
241
				$action_delete="<a href='".$baseurl."?op=delete&frameid=".$frame->getVar('frame_frameid')."'><img src='../assets/images/delete.png' alt='"._AM_MYIFRAME_DELETE."'></a>";
242
				if(xoops_trim($frame->getVar('frame_description') =='')) {
243
					$liendesc = $frame->getVar('frame_url');
244
				} else {
245
					$liendesc = "<a href='".XOOPS_URL."/modules/myiframe/index.php?iframeid=" . $frame->getVar('frame_frameid') . "'>" . $frame->getVar('frame_description') . "</a>";
246
				}
247
				echo "<tr class='".$class."'><td align='center'>" . $frame->getVar('frame_frameid') . "</td><td align='center'>" . $liendesc . "</td><td align='center'>" . formatTimestamp($frame->getVar('frame_created')) . "</td><td align='center'>".$frame->getVar('frame_hits')."</td><td align='center'>" . $action_edit . "&nbsp;-&nbsp;" . $action_delete . "</td></tr>\n";
248
				$class = ($class == 'even') ? 'odd' : 'even';
249
        	}

index.php 1 location

@@ 67-71 (lines=5) @@
64
	   $frarray = $iframe_handler->getObjects($critere);
65
	   if (count($frarray ) > 0) {
66
           	foreach( $frarray as $frame ) {
67
    			if(xoops_trim($frame->getVar('frame_description') =='')) {
68
    				$liendesc = $frame->getVar('frame_url');
69
    			} else {
70
    				$liendesc = "<a href='".$baseurl.'?iframeid=' . $frame->getVar('frame_frameid') . "'>" . $frame->getVar('frame_description') . "</a>";
71
    			}
72
    			$iframe['list'] = $liendesc;
73
    			$xoopsTpl->append('iframes', $iframe);
74
    		}