Code Duplication    Length = 10-10 lines in 2 locations

engine/lib/deprecated-1.9.php 1 location

@@ 1304-1313 (lines=10) @@
1301
	$result = get_data("SHOW TABLES LIKE '$table_prefix%'");
1302
1303
	$tables = array();
1304
	if (is_array($result) && !empty($result)) {
1305
		foreach ($result as $row) {
1306
			$row = (array) $row;
1307
			if (is_array($row) && !empty($row)) {
1308
				foreach ($row as $element) {
1309
					$tables[] = $element;
1310
				}
1311
			}
1312
		}
1313
	}
1314
1315
	return $tables;
1316
}

mod/garbagecollector/start.php 1 location

@@ 73-82 (lines=10) @@
70
	$result = get_data("SHOW TABLES LIKE '$table_prefix%'");
71
72
	$tables = array();
73
	if (is_array($result) && !empty($result)) {
74
		foreach ($result as $row) {
75
			$row = (array) $row;
76
			if (is_array($row) && !empty($row)) {
77
				foreach ($row as $element) {
78
					$tables[] = $element;
79
				}
80
			}
81
		}
82
	}
83
84
	return $tables;
85
}