浏览代码

Fixed issue #535

Stephen Ficklin 6 年之前
父节点
当前提交
357db9b91b
共有 1 个文件被更改,包括 0 次插入7 次删除
  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;
   }