aboutsummaryrefslogtreecommitdiff
path: root/mod/messages/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-03-30 12:35:32 -0400
committercash <cash.costello@gmail.com>2013-03-30 12:35:32 -0400
commit9a50f1530843f7fe8505b3424afcd40ad9e87900 (patch)
treedda007b79d97f258c22fc5aa1c85929b285e9a6c /mod/messages/start.php
parent52a1bf6fd37021cb6bd1843898571ba2036fbf9d (diff)
downloadelgg-9a50f1530843f7fe8505b3424afcd40ad9e87900.tar.gz
elgg-9a50f1530843f7fe8505b3424afcd40ad9e87900.tar.bz2
put test in to prevent deleting messages from everyone in case no guid - should never happen
Diffstat (limited to 'mod/messages/start.php')
-rw-r--r--mod/messages/start.php4
1 files changed, 4 insertions, 0 deletions
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);