diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-04-01 20:47:21 +0100 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-04-01 20:47:21 +0100 |
commit | 64cafb1fc08f57bf3d9960139f3fa30034432be9 (patch) | |
tree | aa0350dd7d66b5b4814223ae969cbb1da9de9a5b /inc | |
parent | 0b2e0a720d550ed8e96ffcdc62cbbffe78d27c21 (diff) | |
download | rpg-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')
-rw-r--r-- | inc/infoutils.php | 2 |
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; |