From 2dc88c06027add435d38e17eb6442ebf26d6e2cf Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 10 May 2008 09:49:21 +0000 Subject: [PATCH] E_NOTICE: $options['USE_INDEX'] might not be set --- includes/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Database.php b/includes/Database.php index 9d9a1778a0..3c27e66fc8 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -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!='') { -- 2.20.1