Changeset 3086
- Timestamp:
- 05/05/2016 11:38:55 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/trac/comment-handler.php
r3072 r3086 99 99 100 100 preg_match( '/^(Comment|Changes|Description changed) \(?by (.*[^\)])\)?:$/', array_shift( $lines ), $matches ); 101 $has_changes = $matches[1] === 'Changes';102 $author = $matches[2];101 $has_changes = ( isset( $matches[1] ) && 'Changes' === $matches[1] ); 102 $author = isset( $matches[2] ) ? $matches[2] : ''; 103 103 104 104 // Remove blank line after 'Comment|Changes (by author):' or 'Description changed by author:'.
Note: See TracChangeset
for help on using the changeset viewer.