News:

Looking for documentation? Take a look on our wiki

Main Menu

The each() function is deprecated.

Started by RonaldB, February 05, 2021, 21:52:34 PM

Previous topic - Next topic

RonaldB

Good evening, I get the following message with the categories:

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /data/www/speelgoedbaas.com/www/templates/theon/html/com_virtuemart/category/default.php on line 190

Line 190 shows the following :

while(list($key, $val) = each($styleSheets)){
                  echo "<li class='".$val["class"]."'><a href='".JURI::base(true)."/templates/". $getTemplateName ."/productsview.php?SETSTYLE=".$key."' title='".$val["title"]."'>".$val["text"]."</a></li>";

               }
               ?>
               </ul>

I do not know what to do. There are several topics on this forum, but I don't know which one is the solution.