1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Remove PHP Warnings - various undefined variables and typos

This commit is contained in:
mrpete
2006-12-05 09:29:32 +00:00
parent 035ec70681
commit a8f2dfe48d

View File

@@ -13,22 +13,24 @@ if (ADMIN) {
} }
} }
} }
foreach(array_keys($e107_plug) as $xplug){ if (is_array($e107_plug)) {
if (file_exists(e_PLUGIN.$e107_plug[$xplug]."/admin_info.php")) { foreach(array_keys($e107_plug) as $xplug){
if ($pref['admin_alerts_uniquemenu'] == 1) { if (file_exists(e_PLUGIN.$e107_plug[$xplug]."/admin_info.php")) {
$text .= "<b>".$xplug."</b><br />"; if ($pref['admin_alerts_uniquemenu'] == 1) {
} else { $text .= "<b>".$xplug."</b><br />";
$text = ""; } else {
} $text = "";
require_once(e_PLUGIN.$e107_plug[$xplug]."/admin_info.php"); }
$text .= "<br />"; require_once(e_PLUGIN.$e107_plug[$xplug]."/admin_info.php");
if ($pref['admin_alerts_uniquemenu'] != 1) {
$caption = $xplug;
$ns -> tablerender($caption, $text);
} else {
$text .= "<br />"; $text .= "<br />";
if ($pref['admin_alerts_uniquemenu'] != 1) {
$caption = $xplug;
$ns -> tablerender($caption, $text);
} else {
$text .= "<br />";
}
$i++;
} }
$i++;
} }
} }