Code Duplication    Length = 3-3 lines in 2 locations

admin/category.php 2 locations

@@ 151-153 (lines=3) @@
148
    $result          = $GLOBALS['xoopsDB']->query($sql);
149
    $client_array    = array();
150
    $client_array[0] = ' ';
151
    while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result))) {
152
        $client_array[$myrow['cid']] = $myrow['name'];
153
    }
154
    $client_select->addOptionArray($client_array);
155
156
    $client_select->setDescription(_AM_XOOPSTUBE_CATSPONSORDSC);
@@ 165-167 (lines=3) @@
162
    $result          = $GLOBALS['xoopsDB']->query($sql);
163
    $banner_array    = array();
164
    $banner_array[0] = ' ';
165
    while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result))) {
166
        $banner_array[$myrow['bid']] = $myrow['bid'];
167
    }
168
    $banner_select->addOptionArray($banner_array);
169
    $banner_select->setDescription(_AM_XOOPSTUBE_BANNERIDDSC);
170
    $sform->addElement($banner_select);