[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] nntp admin.php [Version-0_9_16-branch]
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] nntp admin.php [Version-0_9_16-branch] |
Date: |
Tue, 14 Aug 2007 12:42:22 +0000 |
CVSROOT: /sources/phpgroupware
Module name: nntp
Branch: Version-0_9_16-branch
Changes by: Dave Hall <skwashd> 07/08/14 12:42:22
Modified files:
. : admin.php
Log message:
fix segfault
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nntp/admin.php?cvsroot=phpgroupware&only_with_tag=Version-0_9_16-branch&r1=1.25.2.1.2.2&r2=1.25.2.1.2.3
Patches:
Index: admin.php
===================================================================
RCS file: /sources/phpgroupware/nntp/admin.php,v
retrieving revision 1.25.2.1.2.2
retrieving revision 1.25.2.1.2.3
diff -u -b -r1.25.2.1.2.2 -r1.25.2.1.2.3
--- admin.php 24 Oct 2006 13:56:46 -0000 1.25.2.1.2.2
+++ admin.php 14 Aug 2007 12:42:22 -0000 1.25.2.1.2.3
@@ -16,7 +16,7 @@
* nextmatchs class *
\**************************************************************************/
- /* $Id: admin.php,v 1.25.2.1.2.2 2006/10/24 13:56:46 skwashd Exp $ */
+ /* $Id: admin.php,v 1.25.2.1.2.3 2007/08/14 12:42:22 skwashd Exp $ */
if ( (isset($_POST['submit']) && $_POST['submit'])
&& (isset($_POST['nntplist']) && $_POST['nntplist']) )
@@ -38,7 +38,7 @@
);
}
- $GLOBALS['phpgw_info']['flags'] = $phpgw_flags;
+ $GLOBALS['phpgw_info']['flags'] =& $phpgw_flags;
include('../header.inc.php');
function get_tg($where='')
@@ -60,6 +60,14 @@
if( (!isset($_REQUEST['submit']) || !$_REQUEST['submit']) &&
(!isset($_REQUEST['nntplist']) || !$_REQUEST['nntplist']) )
{
+ if ( empty($GLOBALS['phpgw_info']['server']['nntp_server']) )
+ {
+ echo lang('NNTP is unconfigured. Please <a
href="%1">setup NNTP</a> before continuing',
+ $GLOBALS['phpgw']->link('/index.php',
array('menuaction' => 'admin.uiconfig.index', 'appname' => 'nntp')));
+ $GLOBALS['phpgw']->common->phpgw_footer();
+ exit;
+ }
+
if ( !isset($_REQUEST['tg']) || !$_REQUEST['tg'] )
{
$tg = intval(get_tg());
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] nntp admin.php [Version-0_9_16-branch],
Dave Hall <=