don't store update records if we're not a directory server of some kind
This commit is contained in:
parent
f89e7b2bd5
commit
727e8cc298
@ -1567,6 +1567,11 @@ function import_directory_keywords($hash,$keywords) {
|
|||||||
|
|
||||||
function update_modtime($hash,$guid,$addr,$flags = 0) {
|
function update_modtime($hash,$guid,$addr,$flags = 0) {
|
||||||
|
|
||||||
|
$dirmode = intval(get_config('system','directory_mode'));
|
||||||
|
|
||||||
|
if($dirmode == DIRECTORY_MODE_NORMAL)
|
||||||
|
return;
|
||||||
|
|
||||||
if($flags) {
|
if($flags) {
|
||||||
q("insert into updates (ud_hash, ud_guid, ud_date, ud_flags, ud_addr ) values ( '%s', '%s', '%s', %d, '%s' )",
|
q("insert into updates (ud_hash, ud_guid, ud_date, ud_flags, ud_addr ) values ( '%s', '%s', '%s', %d, '%s' )",
|
||||||
dbesc($hash),
|
dbesc($hash),
|
||||||
|
Reference in New Issue
Block a user