Last modified: 2008-03-29 16:01:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15554, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13554 - PHP Notice in old pre-processor when list item is empty
PHP Notice in old pre-processor when list item is empty
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.12.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-29 15:27 UTC by Cédric Nilly
Modified: 2008-03-29 16:01 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
patch (656 bytes, patch)
2008-03-29 15:27 UTC, Cédric Nilly
Details

Description Cédric Nilly 2008-03-29 15:27:09 UTC
2095                     $term = $t2 = '';
2096                     if ($this->findColonNoLinks($t, $term, $t2) !== false) {
2097                         $t = $t2;
 
2149                     if ( ' ' == $t{0} and ( $this->mLastSection == 'pre' or trim($t) != '' ) ) {

if $t equals '' we have a notice error:
PHP Notice:  Uninitialized string offset:  0 in includes/Parser_OldPP.php on line 2149
Comment 1 Cédric Nilly 2008-03-29 15:27:59 UTC
Created attachment 4779 [details]
patch
Comment 2 Robert Leverington 2008-03-29 16:01:03 UTC
Fixed in r32567.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links