From f9aa7329e19f98aab8135101725f07e92172c7cd Mon Sep 17 00:00:00 2001 From: franck Date: Sun, 5 Apr 2009 19:01:49 +0200 Subject: rand for mysql --- lib/intentioncloud/Controller/Cloud.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/intentioncloud/Controller/Cloud.pm') diff --git a/lib/intentioncloud/Controller/Cloud.pm b/lib/intentioncloud/Controller/Cloud.pm index 7445441..49d42eb 100644 --- a/lib/intentioncloud/Controller/Cloud.pm +++ b/lib/intentioncloud/Controller/Cloud.pm @@ -28,7 +28,7 @@ sub random : Local { $c->stash->{ template } = 'cloud/random.tt'; $c->stash( cloud => $c->model( 'DB::Search' ) - ->find( {}, { order_by => [ 'random()' ] } ) ); + ->find( {}, { order_by => [ 'rand()' ] } ) ); } 1; -- cgit v1.2.3