Re: se.php.net
| From: | Fredrik Ohrn | Date: | Fri, 08 Aug 2003 08:58:46 +0000 |
| Subject: | Re: se.php.net | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-19975@lists.php.net to get a copy of this message | ||
On Fri, 8 Aug 2003, Fredrik Ohrn wrote:
> May I finally suggest that the if case should be dropped entirely and
> replaced by this simple logic:
>
> $MIRRORS[$MYSITE][2] = isset($_SERVER['MIRROR_STATS']) &&
> $_SERVER['MIRROR_STATS'];
>
I just noticed a similar if-case on line 24 in mirror-info.php that will
blow up if MIRROR_STATS is set to 0.
Maby that file should just call have_stats() instead of duplicating the
logic? Something along the lines of:
$mirror_stats = have_stats () ? 1 : 2;
Regards,
Fredrik
--
It's down there somewhere, let me take another look.
- The Dude
Fredrik Öhrn Chalmers University of Technology
ohrn@chl.chalmers.se Sweden