Changeset 3772


Ignore:
Timestamp:
Aug 21, 2009, 12:02:16 PM (11 years ago)
Author:
Criss
Message:

Fix space checking bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/include/cf_functions.inc.php

    r3771 r3772  
    159159      case 0:
    160160        // History item
    161         if (isset($history[$index]) and is_array($history[$index])) {
    162           array_push($history[$index]['CHANGES'], trim($new_line));
     161        $change = trim($new_line);
     162        if (!empty($change) and
     163            isset($history[$index]) and is_array($history[$index])) {
     164          array_push($history[$index]['CHANGES'], $change);
    163165        }
    164166        break;
Note: See TracChangeset for help on using the changeset viewer.