Code Duplication    Length = 7-7 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 1288-1294 (lines=7) @@
1285
		$ARCurrent->nls = $initialNLS;
1286
1287
		$arConfig = &$ARConfig->pinpcache[$this->path];
1288
		if (!is_array($arConfig['authentication']['userdirs'])) {
1289
			$arConfig['authentication']['userdirs'] = array('/system/users/');
1290
		} else {
1291
			if (reset($arConfig['authentication']['userdirs']) != '/system/users/') {
1292
				array_unshift($arConfig['authentication']['userdirs'], '/system/users/');
1293
			}
1294
		}
1295
		if (!is_array($arConfig['authentication']['groupdirs'])) {
1296
			$arConfig['authentication']['groupdirs'] = array('/system/groups/');
1297
		} else {
@@ 1295-1301 (lines=7) @@
1292
				array_unshift($arConfig['authentication']['userdirs'], '/system/users/');
1293
			}
1294
		}
1295
		if (!is_array($arConfig['authentication']['groupdirs'])) {
1296
			$arConfig['authentication']['groupdirs'] = array('/system/groups/');
1297
		} else {
1298
			if (reset($arConfig['authentication']['groupdirs']) != '/system/groups/') {
1299
				array_unshift($arConfig['authentication']['groupdirs'], '/system/groups/');
1300
			}
1301
		}
1302
1303
		$ARCurrent->arLoginSilent = $loginSilent;
1304
		$ARCurrent->arConfig = $prevArConfig;