Skip to content

Commit

Permalink
Update templates.php
Browse files Browse the repository at this point in the history
ensure $positions is always an array by casting $positions['position'], which isn't an array when returns a single value
  • Loading branch information
pjmatos committed Jul 15, 2014
1 parent fdca0f6 commit 3148846
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static function getPositions($clientId, $templateDir)

if (isset($positions['position']))
{
$positions = $positions['position'];
$positions = (array) $positions['position'];
}
else
{
Expand Down

0 comments on commit 3148846

Please sign in to comment.