Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Time.php |
— | — | @@ -447,7 +447,10 @@ |
448 | 448 | protected function parseDBkeys( $args ) { |
449 | 449 | $this->m_caption = false; |
450 | 450 | if ( count( $args ) < 2 ) return; |
451 | | - list( $date, $this->m_time ) = explode( 'T', $args[0], 2 ); |
| 451 | + $timeparts = explode( 'T', $args[0], 2 ); |
| 452 | + if ( count( $timeparts ) != 2 ) return; |
| 453 | + $date = reset( $timeparts ); |
| 454 | + $this->m_time = end( $timeparts ); |
452 | 455 | $d = explode( '/', $date, 3 ); |
453 | 456 | if ( count( $d ) == 3 ) list( $this->m_year, $this->m_month, $this->m_day ) = $d; |
454 | 457 | elseif ( count( $d ) == 2 ) list( $this->m_year, $this->m_month ) = $d; |