Skip to content

Commit

Permalink
* Fixed #112
Browse files Browse the repository at this point in the history
* Bumped version number
JWardee authored and james-ward-songtradr committed Jun 23, 2021
1 parent 83f54cd commit d485bfb
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion WpMailCatcher.php
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
Domain Path: /languages
Description: Logging your mail will stop you from ever losing your emails again! This fast, lightweight plugin (under 140kb in size!) is also useful for debugging or backing up your messages.
Author: James Ward
Version: 1.5.1
Version: 1.5.2
Author URI: https://jamesward.io
Donate link: https://paypal.me/jamesmward
*/
2 changes: 1 addition & 1 deletion build/grunt/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/grunt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WpMailCatcher",
"version": "1.5.1",
"version": "1.5.2",
"lang_po_directory": "../../languages",
"build_directory": "./..",
"dist_directory": "../../assets",
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ Tags: mail logging, email log, email logger, logging, email logging, mail, crm
Requires at least: 4.7
Tested up to: 5.7
Requires PHP: 5.6
Stable tag: 1.5.1
Stable tag: 1.5.2
License: GNU General Public License v3.0
License URI: https://raw.githubusercontent.com/JWardee/wp-mail-catcher/master/LICENSE
Donate link: https://paypal.me/jamesmward
@@ -93,6 +93,10 @@ Great! Please leave a note in our (GitHub tracker)

== Changelog ==

= 1.5.2 =

- Fix: PHP notice that appears if additional_headers column is corrupted

= 1.5.1 =

- Fix: Auto deleting timer isn't pulled through on settings page. Thanks to @oginomizuho
4 changes: 3 additions & 1 deletion src/Models/Logs.php
Original file line number Diff line number Diff line change
@@ -131,7 +131,9 @@ static private function dbResultTransform($results, $args = [])
foreach ($results as &$result) {
$result['status'] = (bool)$result['status'];
$result['attachments'] = json_decode($result['attachments'], true);
$result['additional_headers'] = json_decode($result['additional_headers'], true);
$result['additional_headers'] = isset($result['additional_headers']) && !empty($result['additional_headers']) ?
json_decode($result['additional_headers'], true) :
[];
$result['attachment_file_paths'] = [];

if (is_string($result['additional_headers'])) {

0 comments on commit d485bfb

Please sign in to comment.