From 635a5068c5fc96f5ea788edd1df0730ff6091362 Mon Sep 17 00:00:00 2001 From: Phyks Date: Fri, 18 Jul 2014 23:22:48 +0200 Subject: [PATCH] Forgot an array level --- favicon.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/favicon.php b/favicon.php index 9380caa..e7f489e 100644 --- a/favicon.php +++ b/favicon.php @@ -73,7 +73,7 @@ function getFavicon($urls) { else { $sizes = ''; } - $favicons[$url] = array( + $favicons[$url][] = array( 'favicon_url'=>(string) $head_tag->attributes()['href'], 'sizes'=>$sizes ); @@ -122,7 +122,7 @@ function getFavicon($urls) { foreach($second_try as $tested_url) { $status_code = (int) $second_try_curl['status_codes'][$tested_url['url']]; if ($status_code >= 200 && $status_code < 400) { - $favicons[$tested_url['input_url']] = array( + $favicons[$tested_url['input_url']][] = array( 'favicon_url'=>$tested_url['url'], 'sizes'=>'' );