Index: trunk/extensions/MoodBar/MoodBar.hooks.php |
— | — | @@ -76,7 +76,9 @@ |
77 | 77 | ); |
78 | 78 | |
79 | 79 | $db = $updater->getDB(); |
80 | | - if ( $db->indexExists( 'moodbar_feedback', 'type_timestamp', __METHOD__ ) ) { |
| 80 | + if ( $db->tableExists( 'moodbar_feedback' ) && |
| 81 | + $db->indexExists( 'moodbar_feedback', 'type_timestamp', __METHOD__ ) ) |
| 82 | + { |
81 | 83 | $updater->addExtensionUpdate( array( 'addIndex', 'moodbar_feedback', |
82 | 84 | 'mbf_type_timestamp_id', dirname( __FILE__ ) . '/sql/AddIDToIndexes.sql', true ) |
83 | 85 | ); |