From ea1d50ffc317e6fbb9c25f379ecb3d6596e7db37 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 25 Oct 2006 21:39:32 +0000 Subject: [PATCH] emergency Hello Dolly surgery. Crisis averted! Props joti. fixes #3282 git-svn-id: http://svn.automattic.com/wordpress/trunk@4423 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/plugins/hello.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/plugins/hello.php b/wp-content/plugins/hello.php index e03dbcc33..35fdaca72 100644 --- a/wp-content/plugins/hello.php +++ b/wp-content/plugins/hello.php @@ -41,7 +41,7 @@ Dolly'll never go away again"; // Here we split it into lines $lyrics = explode("\n", $lyrics); // And then randomly choose a line -$chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) ) ] ); +$chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) - 1) ] ); // This just echoes the chosen line, we'll position it later function hello_dolly() {