Last modified: 2012-08-14 12:01:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10204 - Language.php missing else condition?
Language.php missing else condition?
Status: RESOLVED DUPLICATE of bug 10166
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-06-09 02:06 UTC by Brad Spencer
Modified: 2012-08-14 12:01 UTC (History)
2 users (show)

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


Description Brad Spencer 2007-06-09 02:06:13 UTC
After installing 1.10.0, I got errors about "array_slice" needing an array for argument 1 in Language.php line 1139.

I applied this patch which seems to be the intent and it goes away.
Comment 1 Brad Spencer 2007-06-09 02:07:19 UTC
I can't see the attachment, but I presume it is there.

Just in case:

--- /home/spencer/sandbox/mediawiki-1.10.0/languages/Language.php       2007-04-19 15:47:04.000000000 -0300
+++ ./Language.php      2007-06-08 22:53:04.000000000 -0300
@@ -1134,9 +1134,10 @@

                if( !is_array( $rawEntry ) ) {
                        error_log( "\"$rawEntry\" is not a valid magic thingie for \"$mw->mId\"" );
-               }
-               $mw->mCaseSensitive = $rawEntry[0];
-               $mw->mSynonyms = array_slice( $rawEntry, 1 );
+               } else {
+                 $mw->mCaseSensitive = $rawEntry[0];
+                 $mw->mSynonyms = array_slice( $rawEntry, 1 );
+                }

Comment 2 Rob Church 2007-06-11 06:40:19 UTC

*** This bug has been marked as a duplicate of bug 10166 ***

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