com web/php: fix E_NOTICE on manual-lookup.php when no function passed: include/errors.inc

From: Date: Tue, 17 Apr 2012 21:32:06 +0000
Subject: com web/php: fix E_NOTICE on manual-lookup.php when no function passed: include/errors.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13387@lists.php.net to get a copy of this message
Commit: cf9fd94be4be4aa0cd1ab59e86bc3d3e50906ad9 Author: Peter Cowburn <petercowburn@gmail.com> Tue, 17 Apr 2012 22:32:06 +0100 Parents: ee6c0e89afea5f3b4682bbaf37a31929f6435ac9 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=cf9fd94be4be4aa0cd1ab59e86bc3d3e50906ad9 Log: fix E_NOTICE on manual-lookup.php when no function passed Changed paths: M include/errors.inc Diff: diff --git a/include/errors.inc b/include/errors.inc index dd76f5a..97d772f 100644 --- a/include/errors.inc +++ b/include/errors.inc @@ -475,7 +475,7 @@ $snippets = array( ); $term = strtolower(trim($term)); - if ($term[0] === '$') { + if (isset($term[0]) && $term[0] === '$') { $term = ltrim($term, '$'); }

« previous php.webmaster (#13387) next »