Code Duplication    Length = 3-3 lines in 2 locations

engine/lib/deprecated-1.8.php 1 location

@@ 749-751 (lines=3) @@
746
747
	global $CONFIG;
748
749
	if ($subtype === FALSE || $subtype === null || $subtype === 0) {
750
		return FALSE;
751
	}
752
753
	if ($order_by == "") {
754
		$order_by = "e.time_created desc";

engine/lib/deprecated-1.9.php 1 location

@@ 1409-1411 (lines=3) @@
1406
	elgg_deprecated_notice('get_notable_entities() has been deprecated', 1.9);
1407
	global $CONFIG;
1408
1409
	if ($subtype === false || $subtype === null || $subtype === 0) {
1410
		return false;
1411
	}
1412
1413
	$start_time = (int)$start_time;
1414
	$end_time = (int)$end_time;