diff --git a/application/views/components/hamsat/table.php b/application/views/components/hamsat/table.php
index 8238d644a..cc20e3094 100644
--- a/application/views/components/hamsat/table.php
+++ b/application/views/components/hamsat/table.php
@@ -107,7 +107,7 @@
// Load the logbook model and call check_if_grid_worked_in_logbook
foreach ($rove['grids'] as $grid) {
$worked = $CI->logbook_model->check_if_grid_worked_in_logbook($grid, null, "SAT");
- if ($worked != 0) {
+ if ($worked->num_rows() != 0) {
echo " " . $grid . "";
} else {
echo " " . $grid . "";