Permalink
Browse files

removing wacky dyanmic function call syntax. #286

  • Loading branch information...
Peter Adams
Peter Adams committed Nov 29, 2017
1 parent fe747b2 commit 695d7a3795c2c50d645aec8b52387424c0c80afb
Showing with 7 additions and 4 deletions.
  1. +7 −4 modules/base/classes/paginatedResultSet.php
@@ -232,13 +232,16 @@ function formatResults($format) {
'csv' => 'resultSetToCsv',
'debug' => 'resultSetToDebug');
if (array_key_exists($format, $formats)) {
if ( array_key_exists( $format, $formats ) ) {
$method = $formats[ $format ];
return $this->$method();
return $this->{$formats[$format]}();
} else {
return 'That format is not supported';
}
}
}

0 comments on commit 695d7a3

Please sign in to comment.