]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/plugins/hello.php
Wordpress 2.3.2
[autoinstalls/wordpress.git] / wp-content / plugins / hello.php
index e03dbcc33b9271824f2cd9fe67c1d2ec54dd04cc..14374585b6b0caf5037916de802f38fc757deb8d 100644 (file)
@@ -6,7 +6,7 @@ Description: This is not just a plugin, it symbolizes the hope and enthusiasm of
 Author: Matt Mullenweg
 Version: 1.5
 Author URI: http://photomatt.net/
 Author: Matt Mullenweg
 Version: 1.5
 Author URI: http://photomatt.net/
-*/ 
+*/
 
 // These are the lyrics to Hello Dolly
 $lyrics = "Hello, Dolly
 
 // These are the lyrics to Hello Dolly
 $lyrics = "Hello, Dolly
@@ -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
 // 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() {
 
 // This just echoes the chosen line, we'll position it later
 function hello_dolly() {