Skip to content

Commit

Permalink
BUG: system | Rights.php -> group ids are casted to string before tri…
Browse files Browse the repository at this point in the history
…m()ing them
  • Loading branch information
sidler committed Jun 7, 2017
1 parent fdd8700 commit e0f7371
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions module_system/system/Rights.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ private function writeSingleRecord(string $strSystemid, array $arrRights): bool
//Splitting up the rights
$arrParams = array();
$arrParams[] = (int)$arrRights[self::$STR_RIGHT_INHERIT];
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_VIEW]) ? trim($arrRights[self::$STR_RIGHT_VIEW], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_EDIT]) ? trim($arrRights[self::$STR_RIGHT_EDIT], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_DELETE]) ? trim($arrRights[self::$STR_RIGHT_DELETE], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT]) ? trim($arrRights[self::$STR_RIGHT_RIGHT], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT1]) ? trim($arrRights[self::$STR_RIGHT_RIGHT1], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT2]) ? trim($arrRights[self::$STR_RIGHT_RIGHT2], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT3]) ? trim($arrRights[self::$STR_RIGHT_RIGHT3], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT4]) ? trim($arrRights[self::$STR_RIGHT_RIGHT4], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT5]) ? trim($arrRights[self::$STR_RIGHT_RIGHT5], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_CHANGELOG]) ? trim($arrRights[self::$STR_RIGHT_CHANGELOG], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_VIEW]) ? trim("".$arrRights[self::$STR_RIGHT_VIEW], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_EDIT]) ? trim("".$arrRights[self::$STR_RIGHT_EDIT], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_DELETE]) ? trim("".$arrRights[self::$STR_RIGHT_DELETE], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT]) ? trim("".$arrRights[self::$STR_RIGHT_RIGHT], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT1]) ? trim("".$arrRights[self::$STR_RIGHT_RIGHT1], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT2]) ? trim("".$arrRights[self::$STR_RIGHT_RIGHT2], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT3]) ? trim("".$arrRights[self::$STR_RIGHT_RIGHT3], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT4]) ? trim("".$arrRights[self::$STR_RIGHT_RIGHT4], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_RIGHT5]) ? trim("".$arrRights[self::$STR_RIGHT_RIGHT5], ",") : "").",";
$arrParams[] = ",". (!empty($arrRights[self::$STR_RIGHT_CHANGELOG]) ? trim("".$arrRights[self::$STR_RIGHT_CHANGELOG], ",") : "").",";
$arrParams[] = $strSystemid;

$strQuery = "UPDATE "._dbprefix_."system
Expand Down

0 comments on commit e0f7371

Please sign in to comment.