mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Notify - Only show debug info to admins or when developer mode is active
This commit is contained in:
@@ -216,7 +216,7 @@ class notify
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(E107_DEBUG_LEVEL > 0 || deftrue('e_DEBUG_NOTIFY'))
|
if((ADMIN || $pref['developer']) && E107_DEBUG_LEVEL > 0 || deftrue('e_DEBUG_NOTIFY'))
|
||||||
{
|
{
|
||||||
$data = array('id'=>$id, 'subject'=>$subject, 'recipients'=> $recipients, 'prefs'=>$this->notify_prefs['event'][$id], 'message'=>$message);
|
$data = array('id'=>$id, 'subject'=>$subject, 'recipients'=> $recipients, 'prefs'=>$this->notify_prefs['event'][$id], 'message'=>$message);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user