Changeset 11204 for extensions/Comments_Access_Manager/include
- Timestamp:
- Jun 1, 2011, 6:54:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_Access_Manager/include/functions.inc.php
r11070 r11204 28 28 29 29 /** 30 * checks if author is mandatory and set on comments post when comments for all is set 31 * 32 * cheks if author is in an allowed group to post comment when comments for all is not set 30 * Check comment rules set in plugin before accepting it 33 31 * 34 32 * @param : comment action, comment … … 37 35 * 38 36 */ 39 function CM_CheckComment Author($comment_action, $comm)37 function CM_CheckComment($comment_action, $comm) 40 38 { 41 39 load_language('plugin.lang', CM_PATH); … … 53 51 array_push($infos, l10n('CM_Empty Author')); 54 52 } 55 elseif ((isset($conf_CM[6]) and $conf_CM[6] == 'true') and $comm['author'] != 'guest')53 elseif ((isset($conf_CM[6]) and $conf_CM[6] == 'true') and !$comm['author'] == 'guest') 56 54 { 57 55 if (CM_CheckValidGroup($comm['author']) or is_admin())
Note: See TracChangeset
for help on using the changeset viewer.