Skip to content

Commit

Permalink
simplify #806
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh committed Jul 18, 2016
1 parent c39f6a3 commit 8c390ef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions inc/ticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6295,11 +6295,7 @@ function showTimeline($rand) {
}
Plugin::doHook('pre_show_item', array('item' => &$obj, 'options' => &$options));

if( is_array( $obj ) ){
$item_i = $obj['item'];
} else {
$item_i = $obj->fields;
}
$item_i = $item['item'];

$date = "";
if (isset($item_i['date'])) {
Expand Down

0 comments on commit 8c390ef

Please sign in to comment.