Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(ui): empty area if a graph has nothing to render
Browse files Browse the repository at this point in the history
  • Loading branch information
btry authored and ajsb85 committed Oct 29, 2017
1 parent 3ea9cd3 commit c2c98fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/graph.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ public function showInvitationsGraph() {
$doneCount = $dbUtils->countElementsInTableForMyEntities(
PluginFlyvemdmInvitation::getTable(),
"`status` = 'done'"
);
);

if (($pendingCount + $doneCount) == 0) {
return '';
}

$stat = new Stat();
$out = $stat->displayPieGraph(
Expand Down

0 comments on commit c2c98fa

Please sign in to comment.