Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 0bdd47a9e8d4b74bf7ce70ef8690a95f > files > 8

freepbx-2.5.1-1mdv2010.0.src.rpm

--- amp_conf/bin/module_admin	2008-09-10 15:44:06.000000000 -0500
+++ amp_conf/bin/module_admin	2008-09-10 16:30:25.000000000 -0500
@@ -519,10 +519,6 @@
 // fix for ticket:1731
 chdir ( $amp_conf["AMPWEBROOT"] . "/admin/" );
 
-// Get annoucment information to use if needed
-//
-$announcements = module_get_annoucements();
-
 switch ($operation ) {
 	case 'list':
 		showList();
@@ -601,6 +597,10 @@
 		showEngine();
 	break;
 	case 'showannounce';
+		// Get annoucment information to use if needed
+		//
+		$announcements = module_get_annoucements();
+
 		if (trim($announcements) == "") {
 			echo "No Annoucements Available\n";
 		} else {