use foreach() instead of deprecated each() (fixes #190)

This commit is contained in:
Florian Schlichting 2019-12-06 18:21:08 +08:00
parent e2c6b927c8
commit 007bf95589

View File

@ -10,7 +10,7 @@ $qry_content = $xmltree->GetContent('urn:ietf:params:xml:ns:caldav:calendar-quer
$properties = array();
$include_properties = array();
$need_expansion = false;
while (list($idx, $qqq) = each($qry_content))
foreach ($qry_content as $idx => $qqq)
{
$proptype = $qry_content[$idx]->GetNSTag();
switch( $proptype ) {