Skip to content

Firefly III: a personal finances manager

Different call to count()

James Cole516197137367
diff --git a/resources/views/v1/accounts/index.twig b/resources/views/v1/accounts/index.twig
index fb3767667f..dd036b55e0 100644
--- a/resources/views/v1/accounts/index.twig
+++ b/resources/views/v1/accounts/index.twig
@@ -5,14 +5,7 @@
{% endblock %}
{% block content %}
- {{ dump(accounts.count) }}
- {{ dump(accounts.count()) }}
- {{ dump(accounts.getCollection.count()) }}
- {{ dump(accounts.getCollection().count()) }}
- {{ dump(accounts) }}
-
-
- {% if accounts.count > 0 %}
+ {% if accounts.count() > 0 %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box" id="account-index-{{ objectType }}">
@@ -72,7 +65,7 @@
</div>
</div>
{% endif %}
- {% if accounts.count == 0 and page == 1 %}
+ {% if accounts.count() == 0 and page == 1 %}
{% include 'partials.empty' with {objectType: objectType, type: 'accounts',route: route('accounts.create', [objectType])} %}
{% endif %}
{% endblock %}