From bda2d35e89d66b4e5f2705caac21d62c82f5b3dc Mon Sep 17 00:00:00 2001 From: Dan Garner Date: Wed, 27 May 2015 18:58:42 +0100 Subject: [PATCH] Convert to long array syntax for pre 5.4 support. --- lib/data/usergroup.data.class.php | 8 ++++---- maintenance.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/data/usergroup.data.class.php b/lib/data/usergroup.data.class.php index 25b7611af0..6d57dbc90a 100644 --- a/lib/data/usergroup.data.class.php +++ b/lib/data/usergroup.data.class.php @@ -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); @@ -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); @@ -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.'); @@ -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)); } } diff --git a/maintenance.php b/maintenance.php index 1e39d09a94..bb5ec57452 100644 --- a/maintenance.php +++ b/maintenance.php @@ -273,7 +273,7 @@ break; echo sprintf(__('Disabling %s'), $display['display']) . '
' . PHP_EOL; - $update->execute(['displayId' => $display['displayId']]); + $update->execute(array('displayId' => $display['displayId'])); $difference--; }