Used a proper function to update configuration setting

This commit is contained in:
patrickslee
2005-10-04 21:38:40 +00:00
parent 5560ed98c8
commit 9c03df05af
+1 -9
View File
@@ -393,15 +393,7 @@ function cron() {
}
}
}
if ($lastexpirynotify = get_record('config', 'name', 'lastexpirynotify')) {
$lastexpirynotify->value = date('Ymd');
update_record('config', $lastexpirynotify);
} else {
$lastexpirynotify = new stdClass();
$lastexpirynotify->name = 'lastexpirynotify';
$lastexpirynotify->value = date('Ymd');
insert_record('config', $lastexpirynotify);
}
set_config('lastexpirynotify', date('Ymd'));
}
}
}