Changeset 878 for trunk/Modules/User


Ignore:
Timestamp:
Jun 25, 2020, 10:21:26 AM (4 years ago)
Author:
chronos
Message:
  • Fixed: Import of news from zdechov.cz and obec-hovezi.cz.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/UserModel.php

    r874 r878  
    283283    } else
    284284    {
     285      $this->PermissionGroupCache[$GroupId] = array();
     286
    285287      // If no permission combination exists in cache, do new check of database items
    286288      $DbResult = $this->Database->select('PermissionGroupAssignment', '*', '(`Group`="'.$GroupId.
    287289        '") AND (`AssignedGroup` IS NOT NULL)');
    288       $DbRow = array();
    289       while ($DbRow[] = $DbResult->fetch_array());
    290         $this->PermissionGroupCache[$GroupId] = $DbRow;
     290      while ($DbRow = $DbResult->fetch_array())
     291      {
     292        $this->PermissionGroupCache[$GroupId][] = $DbRow;
     293      }
    291294      $PermissionExists = true;
    292295    }
Note: See TracChangeset for help on using the changeset viewer.