Index: trunk/extensions/Translate/TranslatePage.php |
— | — | @@ -252,7 +252,10 @@ |
253 | 253 | $selector = new HTMLSelector( 'task', 'task', $this->options['task'] ); |
254 | 254 | |
255 | 255 | // Check if this is a page translation group to return only appropriate tasks. |
256 | | - $isPageTranslation = strpos( $this->group->getId(), 'page|' ) === 0; |
| 256 | + $isPageTranslation = false; |
| 257 | + if( $this->group ) { |
| 258 | + $isPageTranslation = strpos( $this->group->getId(), 'page|' ) === 0; |
| 259 | + } |
257 | 260 | |
258 | 261 | foreach ( TranslateTasks::getTasks( $isPageTranslation ) as $id ) { |
259 | 262 | $label = call_user_func( array( 'TranslateTask', 'labelForTask' ), $id ); |