From f43cca3e1dd05c6587010c0627f120ce4f4991a3 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 25 Oct 2006 21:39:32 +0000 Subject: [PATCH] emergency Hello Dolly surgery. Crisis averted! Props joti. fixes #3282 git-svn-id: https://develop.svn.wordpress.org/trunk@4423 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 e03dbcc33b..35fdaca725 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() {