Skip to content

Commit f06207a

Browse files
Merge pull request #1 from paulrobertlloyd/patch-1
Fix `Array to string conversion` error - thanks Paul
2 parents cede269 + 736c8cc commit f06207a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alphabetise.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function alphabetise($parent, $options=array()) {
1919

2020
//Gets the input into a two dimensional array - uses '~' as separator;
2121
foreach ($parent as $item){
22-
$temp = explode('~',$item->$options['key']() );
22+
$temp = explode('~',$item->{$options['key']}() );
2323
$temp = $temp[0];
2424
$temp = strtolower($temp);
2525
$array[$temp][] = $item;

0 commit comments

Comments
 (0)