EVOLUTION-NINJA
Edit File: GeoCountry.php
<?php /** * @package Regular Labs Library * @version 23.9.3039 * * @author Peter van Westen <info@regularlabs.com> * @link https://regularlabs.com * @copyright Copyright © 2023 Regular Labs All Rights Reserved * @license GNU General Public License version 2 or later */ namespace RegularLabs\Library\Condition; defined('_JEXEC') or die; /** * Class GeoCountry * * @package RegularLabs\Library\Condition */ class GeoCountry extends Geo { public function pass() { if ( ! $this->getGeo() || empty($this->geo->countryCode)) { return $this->_(false); } return $this->passSimple([$this->geo->country, $this->geo->countryCode]); } }