Browse Source

Merge pull request #1775 from morrisonlevi/patch-1

Do not iterate by reference
Mike Smith 9 years ago
parent
commit
8bc1eedc1f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/PHP/php/fortune.php

+ 1 - 1
frameworks/PHP/php/fortune.php

@@ -30,7 +30,7 @@ asort($arr);
 <th>message</th>
 <th>message</th>
 </tr>
 </tr>
 <?php
 <?php
-foreach ( $arr as $id => &$fortune ) {
+foreach ( $arr as $id => $fortune ) {
 ?>
 ?>
 <tr>
 <tr>
 <td><?php echo htmlspecialchars($id, ENT_QUOTES, 'UTF-8'); ?></td>  
 <td><?php echo htmlspecialchars($id, ENT_QUOTES, 'UTF-8'); ?></td>