From 012b8e6cd1e75cebea1e9a8a4258b2e12857bc69 Mon Sep 17 00:00:00 2001 From: henoheno Date: Tue, 1 May 2007 14:29:19 +0900 Subject: [PATCH] array_merge_leaves() seems similar to array_merge_recursive() --- spam/spam.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spam/spam.php b/spam/spam.php index 4ac9fa7..44022ed 100644 --- a/spam/spam.php +++ b/spam/spam.php @@ -1,5 +1,5 @@ $type){ if (! $type) unset($blocked[$key]); // Ignore goodhost etc } + unset($list); if (! $asap && $hosts) { $remains['badhost'] = array(); @@ -1298,6 +1299,12 @@ function array_count_leaves($array = array(), $count_empty = FALSE) return $count; } +// Merge two leaves +function array_merge_leaves($array1 = array(), $array2 = array()) +{ + return array_merge_recursive($array1, $array2); +} + // --------------------- // Reporting -- 2.11.0