cvs: phpweb / quickref.php

From: Date: Tue, 03 Aug 2004 21:14:05 +0000
Subject: cvs: phpweb / quickref.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-25618@lists.php.net to get a copy of this message
goba Tue Aug 3 17:14:05 2004 EDT Modified files: /phpweb quickref.php Log: apply E_ALL patch sent by Toni Viemero http://cvs.php.net/diff.php/phpweb/quickref.php?r1=1.34&r2=1.35&ty=u Index: phpweb/quickref.php diff -u phpweb/quickref.php:1.34 phpweb/quickref.php:1.35 --- phpweb/quickref.php:1.34 Mon Jan 19 12:02:31 2004 +++ phpweb/quickref.php Tue Aug 3 17:14:05 2004 @@ -1,6 +1,6 @@ <?php -// $Id: quickref.php,v 1.34 2004/01/19 17:02:31 goba Exp $ +// $Id: quickref.php,v 1.35 2004/08/03 21:14:05 goba Exp $ /* @@ -24,6 +24,11 @@ define("COLUMNS", 3); define("SHOW_CLOSE", 20); +// Set empty $notfound if called directly +if (!isset($notfound)) { + $notfound = ''; +} + // Print out the table of found (or all) functions. The HTML comments are // needed to support MyCroft search (Mozilla browser family and Sherlock for MacOSX) function quickref_table($functions) @@ -75,7 +80,7 @@ $functions[$entry] = $funcname; // Compute similarity of the name to the requested one - if (function_exists('similar_text') && $notfound) { + if (function_exists('similar_text') && !empty($notfound)) { similar_text($funcname, $notfound, $p); $temp[$entry] = $p; } @@ -117,7 +122,7 @@ <h1>PHP Function List</h1> -<?php if ($notfound && count($maybe) > 0) { ?> +<?php if (!empty($notfound) && count($maybe) > 0) { ?> <p> Sorry, but the function <b><?php echo htmlspecialchars($notfound); ?></b>

« previous php.mirrors (#25618) next »