Browse Source

Fixed issue #535

Stephen Ficklin 6 years ago
parent
commit
357db9b91b
1 changed files with 0 additions and 7 deletions
  1. 0 7
      tripal/includes/TripalFieldQuery.inc

+ 0 - 7
tripal/includes/TripalFieldQuery.inc

@@ -120,13 +120,6 @@ class TripalFieldQuery extends EntityFieldQuery {
       $results = $this->_intersectResults($results, $st_results);
     }
 
-    // If this is a count query then it should return a numeric value.
-    if ($this->count) {
-      if (!$results or !is_array($results)) {
-        return 0;
-      }
-      return count($results['TripalEntity']);
-    }
     return $results;
   }