FIX: fetch all values in column
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
namespace Incoviba\Service\Venta\MediosPago;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use PDO;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Incoviba\Common\Define\Connection;
|
||||
use Incoviba\Common\Ideal;
|
||||
@ -440,7 +441,7 @@ class Toku extends Ideal\Service
|
||||
$params = [true, "%\"{$eventType}\"%"];
|
||||
$statement = $this->connection->prepare($query);
|
||||
$statement->execute($params);
|
||||
$results = $statement->fetchColumn();
|
||||
$results = $statement->fetchAll(PDO::FETCH_COLUMN);
|
||||
if (count($results) === 0) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user