Przeglądaj źródła

Merge pull request #466 from tripal/fix-tv3-chado_storage_query

Fixed simple conditional in Chado Query
Lacey-Anne Sanderson 6 lat temu
rodzic
commit
dff310b983

+ 1 - 1
tripal_chado/includes/tripal_chado.field_storage.inc

@@ -735,7 +735,7 @@ function tripal_chado_field_storage_query($query) {
   // Only include records that are deleted.  Tripal doesn't keep track of
   // records that are deleted that need purging separately so we can do nothing
   // with this.
-  if (isset($query->deleted)) {
+  if (property_exists($query, 'deleted') and $query->deleted) {
     // There won't ever be field data marked as deleted so just created a
     // condition that always evaluates to false.
     $cquery->where('1=0');