Explorar o código

Fixed simple conditional in Chado Query

Stephen Ficklin %!s(int64=6) %!d(string=hai) anos
pai
achega
d29e706a93
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tripal_chado/includes/tripal_chado.field_storage.inc

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

@@ -733,7 +733,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');