Small fixes

This commit is contained in:
the-djmaze 2022-12-07 10:59:52 +01:00
parent b2e111fc14
commit 8d1290e2c4
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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];