Permalink
Browse files

Fixing parse error in PHP4 caused by optional arguments with default

values being passed by reference. Fixes #180
  • Loading branch information...
1 parent 0959de6 commit 896414e63231abb2ce28d259f9547f847dfad585 @markstory markstory committed Jan 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/model/datasources/dbo_source.php
View
2 cake/libs/model/datasources/dbo_source.php
@@ -2258,7 +2258,7 @@ function limit($limit, $offset = null) {
* @return string ORDER BY clause
* @access public
*/
- function order($keys, $direction = 'ASC', &$model = null) {
+ function order($keys, $direction = 'ASC', $model = null) {
if (!is_array($keys)) {
$keys = array($keys);
}

0 comments on commit 896414e

Please sign in to comment.