Skip to content

Commit

Permalink
apply E_ALL patch sent by Toni Viemero
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor Hojtsy committed Aug 3, 2004
1 parent 905563b commit 62eab30
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions quickref.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -75,7 +80,7 @@ function quickref_table($functions)
$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;
}
Expand Down Expand Up @@ -117,7 +122,7 @@ function quickref_table($functions)

<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>
Expand Down

0 comments on commit 62eab30

Please sign in to comment.