dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prevent "Undefined offset notice"
[lhc/web/wiklou.git]
/
includes
/
MagicWordArray.php
diff --git
a/includes/MagicWordArray.php
b/includes/MagicWordArray.php
index
5856e21
..
4010ec7
100644
(file)
--- a/
includes/MagicWordArray.php
+++ b/
includes/MagicWordArray.php
@@
-203,7
+203,9
@@
class MagicWordArray {
*/
public function parseMatch( $m ) {
reset( $m );
- while ( list( $key, $value ) = each( $m ) ) {
+ while ( ( $key = key( $m ) ) !== null ) {
+ $value = current( $m );
+ next( $m );
if ( $key === 0 || $value === '' ) {
continue;
}