Commit b3fd11d7 authored by earnie's avatar earnie Committed by Dave Reid

Issue #1652794: Fixed typo in _xmlsitemap_check_changed_links().

parent 3b716729
......@@ -705,8 +705,8 @@ function xmlsitemap_link_delete_multiple(array $conditions) {
*/
function _xmlsitemap_check_changed_links(array $conditions = array(), array $updates = array(), $flag = FALSE) {
// If we are changing status or access, check for negative current values.
$conditions['status'] = (!empty($updates['status']) && empty($condition['status'])) ? 0 : 1;
$conditions['access'] = (!empty($updates['access']) && empty($condition['access'])) ? 0 : 1;
$conditions['status'] = (!empty($updates['status']) && empty($conditions['status'])) ? 0 : 1;
$conditions['access'] = (!empty($updates['access']) && empty($conditions['access'])) ? 0 : 1;
$query = db_select('xmlsitemap');
$query->addExpression('1');
......
Markdown is supported
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