Code Duplication    Length = 4-4 lines in 2 locations

admin/donations.php 2 locations

@@ 842-845 (lines=4) @@
839
                    if ( !$pos) {
840
                        $rLentrySplit .= '<br />' . substr($rLentry, 0, $dispWidth);
841
                        $rLentry = substr($rLentry, $dispWidth);
842
                    } else {
843
                        $rLentrySplit .= '<br />' . substr($rLentry, 0, $pos+1);
844
                        $rLentry = substr($rLentry, $pos);
845
                    }
846
                } else {
847
                    $rLentrySplit .= '<br />' . substr($rLentry, 0, $pos+1);
848
                    $rLentry = substr($rLentry, $pos);
@@ 846-849 (lines=4) @@
843
                        $rLentrySplit .= '<br />' . substr($rLentry, 0, $pos+1);
844
                        $rLentry = substr($rLentry, $pos);
845
                    }
846
                } else {
847
                    $rLentrySplit .= '<br />' . substr($rLentry, 0, $pos+1);
848
                    $rLentry = substr($rLentry, $pos);
849
                }
850
            } while  ( strlen($rLentry) > $dispWidth );
851
            $$thisTray->addElement(new XoopsFormLabel( _AD_DON_LOG_ENTRY_TXT, $rLentrySplit . $rLentry));
852