Standard stuff
This commit is contained in:
parent
7aa880543f
commit
f74a54b9bf
1 changed files with 3 additions and 3 deletions
|
@ -1485,7 +1485,7 @@ class Item extends BaseObject
|
||||||
$item_content = dba::selectFirst('item-content', ['id'], ['uri' => $item['uri']]);
|
$item_content = dba::selectFirst('item-content', ['id'], ['uri' => $item['uri']]);
|
||||||
if (DBM::is_result($item_content)) {
|
if (DBM::is_result($item_content)) {
|
||||||
$item['icid'] = $item_content['id'];
|
$item['icid'] = $item_content['id'];
|
||||||
logger('Insert content for URI '.$item['uri'].' ('.$item['icid'].')');
|
logger('Insert content for URI ' . $item['uri'] . ' (' . $item['icid'] . ')');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1511,10 +1511,10 @@ class Item extends BaseObject
|
||||||
|
|
||||||
if (!empty($item['plink'])) {
|
if (!empty($item['plink'])) {
|
||||||
$fields['plink'] = $item['plink'];
|
$fields['plink'] = $item['plink'];
|
||||||
$fields['uri-plink-hash'] = hash('sha1', $item['plink']).hash('sha1', $condition['uri']);
|
$fields['uri-plink-hash'] = hash('sha1', $item['plink']) . hash('sha1', $condition['uri']);
|
||||||
}
|
}
|
||||||
|
|
||||||
logger('Update content for URI '.$condition['uri']);
|
logger('Update content for URI ' . $condition['uri']);
|
||||||
|
|
||||||
dba::update('item-content', $fields, $condition, true);
|
dba::update('item-content', $fields, $condition, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue