Skip to content
Snippets Groups Projects
Commit 6563b17c authored by Demian Katz's avatar Demian Katz
Browse files

More thorough test for list object (to prevent notices).

parent b3c5ded2
Branches
Tags
No related merge requests found
......@@ -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 {
......
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment