Code Duplication    Length = 5-7 lines in 2 locations

class/ObjectController.php 2 locations

@@ 240-244 (lines=5) @@
237
    ) {
238
        $objectid = isset($_POST[$this->handler->keyName]) ? (int)$_POST[$this->handler->keyName] : 0;
239
        if ($debug) {
240
            if ($x_param) {
241
                $smartObj = $this->handler->getD($objectid, true, $x_param);
242
            } else {
243
                $smartObj = $this->handler->getD($objectid);
244
            }
245
        } else {
246
            if ($x_param) {
247
                $smartObj = $this->handler->get($objectid, true, false, false, $x_param);
@@ 245-251 (lines=7) @@
242
            } else {
243
                $smartObj = $this->handler->getD($objectid);
244
            }
245
        } else {
246
            if ($x_param) {
247
                $smartObj = $this->handler->get($objectid, true, false, false, $x_param);
248
            } else {
249
                $smartObj = $this->handler->get($objectid);
250
            }
251
        }
252
253
        // if handler is the Multilanguage handler, we will need to treat this for multilanguage
254
        if (is_subclass_of($this->handler, 'smartpersistablemlobjecthandler')) {