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

@@ 1249-1253 (lines=5) @@
1246
            ];
1247
        }
1248
1249
        if ($pdummy && isset($opt['logic']['pictures']['dummy']['text'])) {
1250
            $dummytext = $opt['logic']['pictures']['dummy']['text'];
1251
        } else {
1252
            $dummytext = '';
1253
        }
1254
1255
        if ($pdummy && isset($opt['logic']['pictures']['dummy']['textcolor']) && is_array($opt['logic']['pictures']['dummy']['textcolor'])) {
1256
            $dummytextcolor = $opt['logic']['pictures']['dummy']['textcolor'];