X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fshowplugins.php;h=e79b4e72242888f4661eedba444473e27caf6101;hb=42e2232371ca152185d7e223ca5e5e8f80cd96c6;hp=058393b0ee3a525b6f27220331021095fb6aec39;hpb=5c05cd2b1a93d360bde7cb7dfc9ba39e5a5a7624;p=quix0rs-gnu-social.git diff --git a/scripts/showplugins.php b/scripts/showplugins.php index 058393b0ee..e79b4e7224 100755 --- a/scripts/showplugins.php +++ b/scripts/showplugins.php @@ -22,10 +22,9 @@ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); require_once INSTALLDIR.'/scripts/commandline.inc'; -foreach (StatusNet::getActivePlugins() as $data) { - list($plugin, $args) = $data; +foreach (StatusNet::getActivePlugins() as $plugin=>$args) { echo "$plugin: "; - if ($args === null) { + if (empty($args)) { echo "(no args)\n"; } else { foreach ($args as $arg => $val) {