Skip to content

Commit

Permalink
Fixing parse error in PHP4 caused by optional arguments with default
Browse files Browse the repository at this point in the history
values being passed by reference. Fixes #180
  • Loading branch information
markstory committed Jan 11, 2010
1 parent 0959de6 commit 896414e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/datasources/dbo_source.php
Expand Up @@ -2258,7 +2258,7 @@ function limit($limit, $offset = null) {
* @return string ORDER BY clause * @return string ORDER BY clause
* @access public * @access public
*/ */
function order($keys, $direction = 'ASC', &$model = null) { function order($keys, $direction = 'ASC', $model = null) {
if (!is_array($keys)) { if (!is_array($keys)) {
$keys = array($keys); $keys = array($keys);
} }
Expand Down

0 comments on commit 896414e

Please sign in to comment.