Skip to content

Commit

Permalink
Convert to long array syntax for pre 5.4 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasgarner committed May 27, 2015
1 parent df48c74 commit bda2d35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/data/usergroup.data.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public static function isQuotaFullByUser($userId)
ORDER BY `group`.isUserSpecific DESC, IFNULL(group.libraryQuota, 0) DESC
');

$quotaSth->execute(['userId' => $userId]);
$quotaSth->execute(array('userId' => $userId));

// Loop over until we have a quota
$rows = $quotaSth->fetchAll(PDO::FETCH_ASSOC);
Expand Down Expand Up @@ -499,7 +499,7 @@ public static function isQuotaFullByUser($userId)
ON lkusergroup.userId = media.userId
WHERE lkusergroup.groupId = :groupId
');
$sth->execute(['groupId' => $groupId]);
$sth->execute(array('groupId' => $groupId));

if (!$row = $sth->fetch())
throw new Exception("Error Processing Request", 1);
Expand All @@ -526,7 +526,7 @@ public static function getLibraryQuota($groupId)
WHERE group.groupId = :groupId
');

$quotaSth->execute(['groupId' => $groupId]);
$quotaSth->execute(array('groupId' => $groupId));

if (!$row = $quotaSth->fetch()) {
throw new Exception('Problem getting this users library quota.');
Expand All @@ -549,6 +549,6 @@ public static function updateLibraryQuota($groupId, $libraryQuota)
WHERE groupId = :groupId
');

$sth->execute(['libraryQuota' => $libraryQuota, 'groupId' => $groupId]);
$sth->execute(array('libraryQuota' => $libraryQuota, 'groupId' => $groupId));
}
}
2 changes: 1 addition & 1 deletion maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
break;

echo sprintf(__('Disabling %s'), $display['display']) . '<br/>' . PHP_EOL;
$update->execute(['displayId' => $display['displayId']]);
$update->execute(array('displayId' => $display['displayId']));

$difference--;
}
Expand Down

0 comments on commit bda2d35

Please sign in to comment.