summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck <franck@lumberjaph.net>2009-04-05 19:01:49 +0200
committerfranck <franck@lumberjaph.net>2009-04-05 19:01:49 +0200
commitf9aa7329e19f98aab8135101725f07e92172c7cd (patch)
treefa45c4ac2de7b49d0b7b13f32c2252ae33ac7d16
parentfix (diff)
downloadintention-cloud-f9aa7329e19f98aab8135101725f07e92172c7cd.tar.gz
rand for mysql
-rw-r--r--lib/intentioncloud/Controller/Cloud.pm2
1 files changed, 1 insertions, 1 deletions
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;