diff --git a/themes/blueprint/templates/RecordDriver/SolrDefault/list-entry.phtml b/themes/blueprint/templates/RecordDriver/SolrDefault/list-entry.phtml index 0cf68bcdcd68ad0bf94ad74b8307281e34584b7a..7e84a3fd037ec691e42523de0afba8fabd1e94e0 100644 --- a/themes/blueprint/templates/RecordDriver/SolrDefault/list-entry.phtml +++ b/themes/blueprint/templates/RecordDriver/SolrDefault/list-entry.phtml @@ -2,7 +2,7 @@ // Set up some convenience variables: $id = $this->driver->getUniqueId(); $source = $this->driver->getResourceSource(); - if (isset($this->list)) { + if (isset($this->list) && is_object($this->list)) { $list_id = $this->list->id; $user_id = $this->list->user_id; } else { diff --git a/themes/jquerymobile/templates/RecordDriver/SolrDefault/list-entry.phtml b/themes/jquerymobile/templates/RecordDriver/SolrDefault/list-entry.phtml index 532bda7a32e6737db5534181348044ddb0e9e11a..e36f66540f173ae6b5b393186ad614b7dcefc11a 100644 --- a/themes/jquerymobile/templates/RecordDriver/SolrDefault/list-entry.phtml +++ b/themes/jquerymobile/templates/RecordDriver/SolrDefault/list-entry.phtml @@ -2,7 +2,7 @@ // Set up some convenience variables: $id = $this->driver->getUniqueId(); $source = $this->driver->getResourceSource(); - if (isset($this->list)) { + if (isset($this->list) && is_object($this->list)) { $list_id = $this->list->id; $user_id = $this->list->user_id; } else {