Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

Commit

Permalink
[BUGFIX] Check for empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
bjo3rnf committed Feb 6, 2016
1 parent 7abac4e commit f5cb0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/PageSelectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function initializeObject() {
*/
private function createPageSelectInstance() {
if (TRUE === is_array($GLOBALS['TSFE']->fe_user->user)
|| (TRUE === isset($GLOBALS['TSFE']->fe_user->groupData['uid']) && 0 < $GLOBALS['TSFE']->fe_user->groupData['uid'])) {
|| (TRUE === is_array($GLOBALS['TSFE']->fe_user->groupData['uid']) && 0 < count($GLOBALS['TSFE']->fe_user->groupData['uid']))) {
$groups = array(-2, 0);
} else {
$groups = array(-1, 0);
Expand Down

0 comments on commit f5cb0dc

Please sign in to comment.