com web/pres2: get rid of each(): display.php

[email protected] (Rasmus Lerdorf) Tue, 22 Jan 2019 14:48:18 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    be33b96662880261a5fe8b3b98ef27d0ec0a56c2
Author:    Rasmus Lerdorf <[email protected]>         Tue, 22 Jan 2019 06:48:18 -0800
Parents:   42ba4a021e99823110754e541d53bbd44eaa8ec2
Branches:  master

Link:       http://git.php.net/?p=web/pres2.git;a=commitdiff;h=be33b96662880261a5fe8b3b98ef27d0ec0a56c2

Log:
get rid of each()

Changed paths:
  M  display.php


Diff:
diff --git a/display.php b/display.php
index 6cf5265..b01c9fe 100644
--- a/display.php
+++ b/display.php
@@ -88,7 +88,7 @@ HEADER;
         if($this->slideNum) echo '<link rel="prev" href="'.$pres_url.'/'.$this->prevSlideNum."\">\n";
         if($this->nextSlideNum) echo '<link rel="next" href="'.$pres_url.'/'.$this->nextSlideNum."\">\n";
         echo '</head>';
-        while(list($this->coid,$obj) = each($this->objs)) {
+        foreach($this->objs as $obj) {
             $obj->display();
         }
         echo <<<FOOTER