From edf0d974a59e3dc45a72c50878bf55e25e2b54d6 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 30 Dec 2006 12:41:46 +0000 Subject: [PATCH] Block anonymous use if pm not set up --- e107_plugins/pm/pm.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e107_plugins/pm/pm.php b/e107_plugins/pm/pm.php index 90fc6b867..5d89f42d3 100755 --- a/e107_plugins/pm/pm.php +++ b/e107_plugins/pm/pm.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:35:38 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-30 12:41:46 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -31,7 +31,7 @@ $action = $qs[0]; if($action == "") { $action = 'inbox'; } $pm_prefs = $sysprefs->getArray("pm_prefs"); -if(!check_class($pm_prefs['pm_class'])) +if(!isset($pm_prefs['pm_class']) || !check_class($pm_prefs['pm_class'])) { require_once(HEADERF); $ns->tablerender(LAN_PM, LAN_PM_12);