Skip to content

physical_view.php not compatible with PHP 8 #380

@iGeorgeX

Description

@iGeorgeX

In line 102 a

while (list($rack,) = each($racks)) {

is used and this leads to physical_view.php not running with PHP 8.

Instead of

while (list($rack,) = each($racks)) {
         # In our convention, y=0 is close to the floor. (Easier to wire up)
         krsort($racks[$rack]);
      }

It should be better

foreach ($racks as $rack => $values) {
        // In our convention, y=0 is close to the floor. (Easier to wire up)
       krsort($racks[$rack]);
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions