From bf99906386a7503de83d9683dd58cd7821456a18 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 7 Jan 2016 14:27:06 -0800 Subject: provide admin toggle to disable delivery reports --- include/zot.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index a644bbd06..beaa54126 100644 --- a/include/zot.php +++ b/include/zot.php @@ -3924,6 +3924,9 @@ function check_zotinfo($channel,$locations,&$ret) { function delivery_report_is_storable($dr) { + if(get_config('system','disable_dreport')) + return false; + call_hooks('dreport_is_storable',$dr); // let plugins accept or reject - if neither, continue on -- cgit v1.2.3