Make WordPress Core

Changeset 4423


Ignore:
Timestamp:
10/25/2006 09:39:32 PM (18 years ago)
Author:
markjaquith
Message:

emergency Hello Dolly surgery. Crisis averted! Props joti. fixes #3282

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/plugins/hello.php

    r2758 r4423  
    4242$lyrics = explode("\n", $lyrics);
    4343// And then randomly choose a line
    44 $chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) ) ] );
     44$chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) - 1) ] );
    4545
    4646// This just echoes the chosen line, we'll position it later
Note: See TracChangeset for help on using the changeset viewer.