Code Duplication    Length = 5-5 lines in 2 locations

htdocs/modules/system/admin/blocksadmin/main.php 1 location

@@ 316-320 (lines=5) @@
313
                $options_count = count($options);
314
                if ($options_count > 0) {
315
                    //Convert array values to comma-separated
316
                    for ($i = 0; $i < $options_count; ++$i) {
317
                        if (is_array($options[$i])) {
318
                            $options[$i] = implode(',', $options[$i]);
319
                        }
320
                    }
321
                    $options = implode('|', $options);
322
                    $block->setVar('options', $options);
323
                }

upgrade/cnt-2.2.x-to-2.3.0/index.php 1 location

@@ 482-486 (lines=5) @@
479
            }
480
            $count = count($options);
481
            //Convert array values to comma-separated
482
            for ($i = 0; $i < $count; $i++) {
483
                if (is_array($options[$i])) {
484
                    $options[$i] = implode(',', $options[$i]);
485
                }
486
            }
487
            $options = implode('|', $options);
488
            $sql = "UPDATE `" . $xoops->db()->prefix("newblocks") . "` SET options = " . $xoops->db()
489
                    ->quote($options) . " WHERE bid = {$bid}";