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 a526234 commit df48c74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/data/campaign.data.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public static function setOwner($campaignId, $userId)

// Get some details about the campaign
$select = $dbh->prepare('SELECT campaignId, campaign, userId, isLayoutSpecific FROM `campaign` WHERE campaignId = :campaignId');
$select->execute(['campaignId' => $campaignId]);
$select->execute(array('campaignId' => $campaignId));

if (!$row = $select->fetch(PDO::FETCH_ASSOC))
throw new Exception('Unable to find Campaign/Layout');
Expand All @@ -314,7 +314,7 @@ public static function setOwner($campaignId, $userId)

// Should we also update the layout?
if ($row['isLayoutSpecific'] == 1) {
$layouts = Layout::Entries(null, ['layoutSpecificCampaignId' => $campaignId]);
$layouts = Layout::Entries(null, array('layoutSpecificCampaignId' => $campaignId));

if (count($layouts) <= 0)
throw new Exception('Unable to find Layout');
Expand Down
2 changes: 1 addition & 1 deletion lib/data/display.data.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public function Delete($displayID)
'displayid' => $displayID
));

\Xibo\Helper\Log::audit('Display', $displayID, 'Display Deleted', ['displayId' => $displayID]);
\Xibo\Helper\Log::audit('Display', $displayID, 'Display Deleted', array('displayId' => $displayID));

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/data/schedule.data.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function Delete($eventID)
'eventid' => $eventID
));

\Xibo\Helper\Log::audit('Schedule', $eventID, 'Schedule Event Deleted', ['eventId' => $eventID]);
\Xibo\Helper\Log::audit('Schedule', $eventID, 'Schedule Event Deleted', array('eventId' => $eventID));

return true;
}
Expand Down

0 comments on commit df48c74

Please sign in to comment.