Skip to content
Snippets Groups Projects
Commit 15d3e6bb authored by Alexander Hass's avatar Alexander Hass
Browse files

#1869924: Strict warning: Creating default object from empty value

parent 9252a080
No related branches found
No related tags found
No related merge requests found
linkchecker 6.x-dev, nightly
----------------------------
* #1869924: Strict warning: Creating default object from empty value.
* #1867460: Prevent save on automatic updates, if content has not changed.
* #1804842 follow up: Exit if all node types are disabled
* #1450672: Cron task does not impersonate to admin user on automatic content updates.
......
......@@ -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);
......@@ -923,6 +924,7 @@ function _linkchecker_add_comment_links($comment, $skip_missing_links_detection
$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);
......@@ -1001,6 +1003,7 @@ function _linkchecker_add_box_links($box, $bid, $skip_missing_links_detection =
$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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment