Skip to content

Commit 34d676a

Browse files
committed
new version and fix date check
1 parent 52cd63e commit 34d676a

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

README.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: helloasso, paiement, association, crowdfunding, don
55
Requires at least: 4.0
66
Tested up to: 6.7.1
77
Requires PHP: 7.2.34
8-
Stable tag: 1.1.14
8+
Stable tag: 1.1.15
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -81,6 +81,9 @@ Please report security bugs found in the source code of the helloasso plugin thr
8181

8282
== Changelog ==
8383

84+
= 1.1.15 =
85+
* Correction d'exceptions diverses
86+
8487
= 1.1.14 =
8588
* Correction dans la description
8689

admin/class-hello-asso-admin.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ function content_dashboard() {
9898

9999
foreach ($campaign as $key => $campain) :
100100

101-
if (isset($campain['endDate']) && strlen($campain['endDate']) > 4) {
102-
if (time() > strtotime($campain['endDate'])) {
101+
$endDate = $campain['endDate'] ?? '';
102+
if (strlen($endDate) > 4) {
103+
if (time() > strtotime($endDate)) {
103104
$incrementArray = 0;
104105
} else {
105106
$incrementArray = 1;
@@ -110,7 +111,8 @@ function content_dashboard() {
110111

111112
if (strtolower($campain['formType']) == "event") {
112113

113-
if (isset($campain['startDate']) && time() > strtotime($campain['startDate'])) {
114+
$startDate = $campain['startDate'] ?? '';
115+
if (time() > strtotime($startDate)) {
114116
$incrementArray = 0;
115117
} else {
116118
$incrementArray = 1;

hello-asso.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin Name: HelloAsso
1717
* Plugin URI: https://centredaide.helloasso.com/s/article/paiement-en-ligne-wordpress-integrer-vos-campagnes-helloasso
1818
* Description: HelloAsso est la solution gratuite des associations pour collecter des paiements et des dons sur internet.
19-
* Version: 1.1.14
19+
* Version: 1.1.15
2020
* Author: HelloAsso
2121
* Author URI: https://helloasso.com
2222
* License: GPL-2.0+
@@ -36,7 +36,7 @@
3636
* Start at version 1.0.0 and use SemVer - https://semver.org
3737
* Rename this for your plugin and update it as you release new versions.
3838
*/
39-
define('HELLO_ASSO_VERSION', '1.1.14');
39+
define('HELLO_ASSO_VERSION', '1.1.15');
4040

4141
/**
4242
* The code that runs during plugin activation.

0 commit comments

Comments
 (0)