summaryrefslogtreecommitdiff
path: root/inc/infoutils.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-04-01 20:47:21 +0100
committerChristopher Smith <chris@jalakai.co.uk>2013-04-01 20:47:21 +0100
commit64cafb1fc08f57bf3d9960139f3fa30034432be9 (patch)
treeaa0350dd7d66b5b4814223ae969cbb1da9de9a5b /inc/infoutils.php
parent0b2e0a720d550ed8e96ffcdc62cbbffe78d27c21 (diff)
downloadrpg-64cafb1fc08f57bf3d9960139f3fa30034432be9.tar.gz
rpg-64cafb1fc08f57bf3d9960139f3fa30034432be9.tar.bz2
for completeness (& defensive coding), test ['show'] against MSG_PUBLIC in case its redefined to a non-zero value
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r--inc/infoutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php
index 3d1326624..da230da37 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -300,7 +300,7 @@ function info_msg_canshow($msg){
global $INFO, $auth;
// is the message public? - everyone and anyone can see it
- if (empty($msg['show'])) return true;
+ if (empty($msg['show']) || ($msg['show'] == MSG_PUBLIC)) return true;
// restricted msg, but no authentication
if (empty($auth)) return false;