E_NOTICE: $options['USE_INDEX'] might not be set
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 10 May 2008 09:49:21 +0000 (09:49 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 10 May 2008 09:49:21 +0000 (09:49 +0000)
includes/Database.php

index 9d9a177..3c27e66 100644 (file)
@@ -945,7 +945,7 @@ class Database {
                }
                if( is_array( $table ) ) {
                        if ( !empty($join_conds) || (isset($options['USE INDEX']) && is_array($options['USE INDEX'])) )
-                               $from = ' FROM ' . $this->tableNamesWithUseIndexOrJOIN( $table, $options['USE INDEX'], $join_conds );
+                               $from = ' FROM ' . $this->tableNamesWithUseIndexOrJOIN( $table, @$options['USE INDEX'], $join_conds );
                        else
                                $from = ' FROM ' . implode( ',', array_map( array( &$this, 'tableName' ), $table ) );
                } elseif ($table!='') {