cvs: pearweb /include pear-cache.php
| From: | Martin Jansen | Date: | Wed, 05 May 2004 15:12:02 +0000 |
| Subject: | cvs: pearweb /include pear-cache.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-19232@lists.php.net to get a copy of this message | ||
mj Wed May 5 11:12:02 2004 EDT
Modified files:
/pearweb/include pear-cache.php
Log:
* Using @ in front of arrays will cause jpgraph to fail, because
$php_errormsg will contain a value.
This patch fixes that package stats.
http://cvs.php.net/diff.php/pearweb/include/pear-cache.php?r1=1.9&r2=1.10&ty=u
Index: pearweb/include/pear-cache.php
diff -u pearweb/include/pear-cache.php:1.9 pearweb/include/pear-cache.php:1.10
--- pearweb/include/pear-cache.php:1.9 Wed Apr 14 14:02:28 2004
+++ pearweb/include/pear-cache.php Wed May 5 11:12:02 2004
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Author: Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-cache.php,v 1.9 2004/04/14 18:02:28 mj Exp $
+ $Id: pear-cache.php,v 1.10 2004/05/05 15:12:02 mj Exp $
*/
// Adding _no_cache=1 to the URL prevents caching
@@ -30,8 +30,8 @@
"/dtd/index.php" => "",
"/feeds/index.php" => "",
"/download-docs.php" => "",
- "/account-info.php" => $_SERVER['PHP_SELF'] .
@$_GET['handle'],
- "/accounts.php" => @$_GET['letter'] . "__" .
@$_GET['offset'],
+ "/account-info.php" => $_SERVER['PHP_SELF'] .
(isset($_GET['handle']) ? $_GET['handle'] : ''),
+ "/accounts.php" => (isset($_GET['letter']) ?
$_GET['letter'] : '') . "__" . (isset($_GET['offset']) ?
$_GET['offset'] : ''),
// "/packages.php" => @$_GET['catpid'] .
@$_GET['showempty'] . "__" . @$_GET['hideMoreInfo'] . "__" .
@$_GET['showMoreInfo']
);