Code Duplication    Length = 3-5 lines in 2 locations

htdocs/config2/settings-dist-common.inc.php 1 location

@@ 262-264 (lines=3) @@
259
    if (!isset($opt['logic']['pictures']['dir'])) {
260
        $opt['logic']['pictures']['dir'] = __DIR__ . '/../images/uploads';
261
    }  // Ocprop, OKAPI !
262
    if (!isset($opt['logic']['pictures']['url'])) {
263
        $opt['logic']['pictures']['url'] = $opt['page']['default_primary_url'] . 'images/uploads';
264
    }
265
    if (!isset($opt['logic']['pictures']['thumb_dir'])) {
266
        $opt['logic']['pictures']['thumb_dir'] = $opt['logic']['pictures']['dir'] . '/thumbs';
267
    }

htdocs/lib2/logic/user.class.php 1 location

@@ 1259-1263 (lines=5) @@
1256
            ];
1257
        }
1258
1259
        if ($pdummy && isset($opt['logic']['pictures']['dummy']['text'])) {
1260
            $dummytext = $opt['logic']['pictures']['dummy']['text'];
1261
        } else {
1262
            $dummytext = '';
1263
        }
1264
1265
        if ($pdummy && isset($opt['logic']['pictures']['dummy']['textcolor']) && is_array($opt['logic']['pictures']['dummy']['textcolor'])) {
1266
            $dummytextcolor = $opt['logic']['pictures']['dummy']['textcolor'];