mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
Small fixes
This commit is contained in:
parent
b2e111fc14
commit
8d1290e2c4
|
@ -68,7 +68,7 @@ class Property implements \JsonSerializable
|
|||
}
|
||||
break;
|
||||
case PluginPropertyType::SELECTION:
|
||||
if ($this->aOptions && \in_array($mValue, $oItem->Options())) {
|
||||
if ($this->aOptions && \in_array($mValue, $this->aOptions)) {
|
||||
$this->mValue = (string) $mValue;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -93,7 +93,7 @@ class ServiceActions
|
|||
|
||||
$_POST = \json_decode(\file_get_contents('php://input'), true);
|
||||
|
||||
$sAction = $_POST['Action'] ?? null;
|
||||
$sAction = $_POST['Action'] ?? '';
|
||||
if (empty($sAction) && $this->oHttp->IsGet() && !empty($this->aPaths[2]))
|
||||
{
|
||||
$sAction = $this->aPaths[2];
|
||||
|
|
Loading…
Reference in a new issue