cvs: phpweb /include layout.inc

From: Date: Wed, 29 Aug 2001 18:12:34 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6195@lists.php.net to get a copy of this message
jimw		Wed Aug 29 14:12:34 2001 EDT

  Modified files:              
    /phpweb/include	layout.inc 
  Log:
  silence warnings. having is_file ever produce a warning just boggles my mind.
  
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.50 phpweb/include/layout.inc:1.51
--- phpweb/include/layout.inc:1.50	Fri Aug 17 13:55:57 2001
+++ phpweb/include/layout.inc	Wed Aug 29 14:12:34 2001
@@ -1,5 +1,5 @@
 <?php
-/* $Id: layout.inc,v 1.50 2001/08/17 17:55:57 rasmus Exp $ */
+/* $Id: layout.inc,v 1.51 2001/08/29 18:12:34 jimw Exp $ */
 
 # spacer()
 # print a IMG tag for a sized spacer GIF
@@ -345,10 +345,10 @@
 	$chap = "ref.$string.php";
 	$feat = "features.$string.php";
 	$struct = "control-structures.$string.php";
-	if(is_file($func)) return $func;
-	else if(is_file($chap)) return $chap;
-	else if(is_file($feat)) return $feat;
-	else if(is_file($struct)) return $struct;
+	if(@is_file($func)) return $func;
+	else if(@is_file($chap)) return $chap;
+	else if(@is_file($feat)) return $feat;
+	else if(@is_file($struct)) return $struct;
 	else return "$string.php";
 }
 




Thread (1 message)

  • Jim Winstead
« previous php.mirrors (#6195) next »