cvs: phpweb / results.php
| From: | Nuno Lopes | Date: | Thu, 04 Oct 2007 22:08:08 +0000 |
| Subject: | cvs: phpweb / results.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-170@lists.php.net to get a copy of this message | ||
nlopess Thu Oct 4 22:08:08 2007 UTC
Modified files:
/phpweb results.php
Log:
fix bug #42853: E_NOTICE when no cache is available at yahoo servers
http://cvs.php.net/viewvc.cgi/phpweb/results.php?r1=1.26&r2=1.27&diff_format=u
Index: phpweb/results.php
diff -u phpweb/results.php:1.26 phpweb/results.php:1.27
--- phpweb/results.php:1.26 Sat Aug 25 14:46:30 2007
+++ phpweb/results.php Thu Oct 4 22:08:08 2007
@@ -1,5 +1,5 @@
<?php
-// $Id: results.php,v 1.26 2007/08/25 14:46:30 bjori Exp $
+// $Id: results.php,v 1.27 2007/10/04 22:08:08 nlopess Exp $
$_SERVER['BASE_PAGE'] = 'results.php';
include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
#include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc';
@@ -85,7 +85,7 @@
$d = date('j M Y', $hit['ModificationDate']);
$cachelink = $size = '';
- if ($hit['Cache']['Size']) {
+ if (isset($hit['Cache'])) {
$cachelink = " - <a
href=\"{$hit['Cache']['Url']}\">Cached</a>";
if ($hit['Cache']['Size'] > 1024) {
$size = ' - ' . sprintf("%d",
$hit['Cache']['Size']/1024) . 'k';