[Tickets #14605] Re: Horde not loading vhosts confs

noreply at bugs.horde.org noreply at bugs.horde.org
Fri Mar 31 15:59:31 UTC 2017


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/14605
------------------------------------------------------------------------------
  Ticket             | 14605
  Updated By         | Michael Rubinsky <mrubinsk at horde.org>
  Summary            | Horde not loading vhosts confs
  Queue              | Horde Framework Packages
  Type               | Bug
-State              | Unconfirmed
+State              | Assigned
-Priority           | 3. High
+Priority           | 2. Medium
  Milestone          |
  Patch              | 1
-Owners             |
+Owners             | Horde Developers
------------------------------------------------------------------------------


Michael Rubinsky <mrubinsk at horde.org> (2017-03-31 15:59) wrote:

The problem is that foreach() operates on a copy of the array, so it  
can't be modified within the loop. However, the solution isn't to  
revert back to the deprecated php language construct. It needs to be  
changed to something like:

$k =0;
for ($v = reset($flist); $v; $v = next($flist)) {
.
   if ($k++ == $end) {
       .
   }

}

I can fix this when I'm back in front of my dev box late  
tonight/tomorrow if no one else beats me to it.





More information about the bugs mailing list