$k = $this->getPk();
$this->count = $result->$k;
- if ($this->count > 0) {
- $this->filters->setCounter($this->count);
- }
+ $this->filters->setCounter($this->count);
} catch (Throwable $e) {
Analog::log(
'Cannot count history | ' . $e->getMessage(),
$k = self::PK;
$this->count = $result->$k;
- if ($this->count > 0) {
- $this->filters->setCounter($this->count);
- }
+ $this->filters->setCounter($this->count);
} catch (Throwable $e) {
Analog::log(
'Cannot count history | ' . $e->getMessage(),
$k = self::PK;
$this->count = $result->$k;
-
- if ($this->count > 0) {
- $this->filters->setCounter($this->count);
- }
+ $this->filters->setCounter($this->count);
} catch (Throwable $e) {
Analog::log(
'Cannot count contributions | ' . $e->getMessage(),
$results = $zdb->execute($countSelect);
$this->count = (int)$results->current()->count;
- if (isset($this->filters) && $this->count > 0) {
+ if (isset($this->filters)) {
$this->filters->setCounter($this->count);
}
} catch (Throwable $e) {
$k = self::PK;
$this->count = $result->$k;
-
- if ($this->count > 0) {
- $this->filters->setCounter($this->count);
- }
+ $this->filters->setCounter($this->count);
} catch (Throwable $e) {
Analog::log(
'Cannot count saved searches | ' . $e->getMessage(),
$k = self::PK;
$this->count = $result->$k;
- if ($this->count > 0) {
- $this->filters->setCounter($this->count);
- }
+ $this->filters->setCounter($this->count);
} catch (Throwable $e) {
Analog::log(
'Cannot count transactions | ' . $e->getMessage(),