From 330100c0418e26a26f6c20bdf893eaa08b61b5d8 Mon Sep 17 00:00:00 2001
From: Jesse Hofmann-Smith <jesse@opensourcery.com>
Date: Tue, 18 Dec 2012 17:45:39 -0800
Subject: [PATCH] fixing php warning "Creating default object from empty
 value"

---
 linkchecker.module |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/linkchecker.module b/linkchecker.module
index 781d492..1560dc9 100644
--- a/linkchecker.module
+++ b/linkchecker.module
@@ -842,6 +842,7 @@ function _linkchecker_add_node_links($node, $skip_missing_links_detection = FALS
       $urlhash = md5($url);
       $link = db_fetch_object(db_query("SELECT lid FROM {linkchecker_links} WHERE urlhash = '%s'", $urlhash));
       if (!$link) {
+        $link = new stdClass();
         $link->urlhash = $urlhash;
         $link->url = $url;
         $link->status = _linkchecker_link_check_status_filter($url);
-- 
1.7.5.4

