web: fix for PHP7.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Nov 2016 00:47:09 +0000 (11:17 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Nov 2016 00:47:09 +0000 (11:17 +1030)
split() was deprecated, is now removed. explode() is the new hotness.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
web/staticmoduleinfo.php

index 7f388c2cb1d8d9cca2e6c87907bbec060a7ce253..ac4ac68f1bb19226ee184adfe9af73dd1e7420b8 100644 (file)
@@ -63,7 +63,7 @@ if ($extdepends) {
 <h3>External dependencies:</h3>
 <ul class='external-dependencies'>
 <?php
-       foreach (split("\n", $extdepends) as $dep) {
+       foreach (explode("\n", $extdepends) as $dep) {
                $fields=preg_split("/\s+/", $dep);
                echo "<li>" . $fields[0].' ';
                if (count($fields) > 1)