(Grav GitSync) Automatic Commit from dan

This commit is contained in:
dan 2023-02-10 23:03:28 +01:00 committed by GitSync
parent 8648ba7755
commit fb5edb6eed
4 changed files with 36 additions and 7 deletions

View File

@ -0,0 +1,23 @@
---
title: 'PostgreSQL Major Update v.15'
author: Dan
published: true
date: '10-02-2023 21:59'
taxonomy:
category:
- news
tag:
- postgresql
- 'TECH SAVIOURS'
- matrix
- git
- gitea
- instance
aura:
author: dan
---
The next server update ("Wednesday around 5pm NZ time (8am UTC)") includes a few hours of downtime.
The reason is not really the major update of PostgreSQL. But we take the opportunity to clean up the database at the same time (especially for Matrix).
This means that Matrix and our Git instance will be unavailable during this process.

View File

@ -1,3 +1,9 @@
# v7.1.2
## 01/08/2023
1. [](#bugfix)
* Fixes issue with multiplication type BasicCaptcha Math Captcha [#587](https://github.com/getgrav/grav-plugin-form/issues/587)
# v7.1.1
## 11/29/2022

View File

@ -1,7 +1,7 @@
name: Form
slug: form
type: plugin
version: 7.1.1
version: 7.1.2
description: Enables forms handling and processing
icon: check-square
author:

View File

@ -32,20 +32,20 @@ class BasicCaptcha
// calculator
if ($operator === '-') {
if ($first_num < $second_num) {
$result = "$second_num-$first_num";
$captcha_code = $second_num-$first_num;
$result = "$second_num - $first_num";
$captcha_code = $second_num - $first_num;
} else {
$result = "$first_num-$second_num";
$captcha_code = $first_num - $second_num;
}
} elseif ($operator === '*') {
$result = "{$first_num}x{$second_num}";
$captcha_code = $first_num - $second_num;
$result = "{$first_num} x {$second_num}";
$captcha_code = $first_num * $second_num;
} elseif ($operator === '/') {
$result = "$first_num/ second_num";
$result = "$first_num / second_num";
$captcha_code = $first_num / $second_num;
} elseif ($operator === '+') {
$result = "$first_num+$second_num";
$result = "$first_num + $second_num";
$captcha_code = $first_num + $second_num;
}
} else {