Issues (3083)

xoopseditor/tinymce5/include/xoopsimagemanager.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 *  TinyMCE adapter for XOOPS
4
 *
5
 * @copyright       (c) 2000-2016 XOOPS Project (www.xoops.org)
6
 * @license             GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
7
 * @package             class
8
 * @subpackage          editor
9
 * @since               2.3.0
10
 * @author              Laurent JEN <[email protected]>
11
 */
12
13
defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
14
15
// check categories readability by group
16
$groups         = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS);
17
$imgcat_handler = xoops_getHandler('imagecategory');
18
19
return !(count($imgcat_handler->getList($groups, 'imgcat_read', 1)) == 0);
0 ignored issues
show
The method getList() does not exist on XoopsObjectHandler. It seems like you code against a sub-type of XoopsObjectHandler such as XoopsModuleHandler or XoopsImageHandler or XoopsRankHandler or XoopsCommentHandler or XoopsTplsetHandler or XoopsAvatarHandler or XoopsBlockHandler or XoopsImageSetHandler or XoopsPersistableObjectHandler or XoopsImagecategoryHandler. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
return !(count($imgcat_handler->/** @scrutinizer ignore-call */ getList($groups, 'imgcat_read', 1)) == 0);
Loading history...
20