From 9a50f1530843f7fe8505b3424afcd40ad9e87900 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 30 Mar 2013 12:35:32 -0400 Subject: put test in to prevent deleting messages from everyone in case no guid - should never happen --- mod/messages/start.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/messages/start.php') diff --git a/mod/messages/start.php b/mod/messages/start.php index 714129e4b..6d0e82744 100644 --- a/mod/messages/start.php +++ b/mod/messages/start.php @@ -437,6 +437,10 @@ function messages_user_hover_menu($hook, $type, $return, $params) { */ function messages_purge($event, $type, $user) { + if (!$user->getGUID()) { + return; + } + // make sure we delete them all $entity_disable_override = access_get_show_hidden_status(); access_show_hidden_entities(true); -- cgit v1.2.3