This commit is contained in:
lalka2016 2023-08-06 21:06:12 +03:00
parent c7e76ccb11
commit 9ff4ff4b4b

View file

@ -33,7 +33,7 @@ abstract class Postable extends Attachable
{ {
$oid = (int) $this->getRecord()->owner; $oid = (int) $this->getRecord()->owner;
if(!$real && $this->isAnonymous()) if(!$real && $this->isAnonymous())
$oid = OPENVK_ROOT_CONF["openvk"]["preferences"]["wall"]["anonymousPosting"]["account"]; $oid = (int) OPENVK_ROOT_CONF["openvk"]["preferences"]["wall"]["anonymousPosting"]["account"];
if($oid > 0) if($oid > 0)
return (new Users)->get($oid); return (new Users)->get($oid);