Angus Leeming <[EMAIL PROTECTED]> writes:

| Index: end.php3
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/www-devel/end.php3,v
| retrieving revision 1.11
| diff -u -r1.11 end.php3
| --- end.php3    28 Nov 2002 01:41:22 -0000      1.11
| +++ end.php3    23 Jan 2003 14:12:16 -0000
| @@ -38,7 +38,7 @@
| 
|  <?php
|  // only the main home page defines this file, so we only count hits 
| to that page
| -if ($counter_file) {
| +if (isset($counter_file)) {
|         counter($counter_file);
|  }

Then you need an else clause, I belive that counter() emmits a warning
messge if it is unable to open the file.

That message, or one similar should be output if the file is not set
at all.

|  ?>
| @@ -46,7 +46,7 @@
|  <address>
|  <?php
|  echo "Webmaster: <a 
| href=\"mailto:[EMAIL PROTECTED]\";>[EMAIL PROTECTED]</a>\n";
| -if ($translator) {
| +if (isset($translator)) {
|         echo "Translator:<a 
| href=\"mailto:$translator\";>$translator</a>";
|  }

This is ok.

-- 
        Lgb

Reply via email to