phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] news_admin/inc class.bonews.inc.php class.uinew...


From: Sigurd Nes
Subject: [Phpgroupware-cvs] news_admin/inc class.bonews.inc.php class.uinew...
Date: Sat, 24 Feb 2007 20:42:12 +0000

CVSROOT:        /sources/phpgroupware
Module name:    news_admin
Changes by:     Sigurd Nes <sigurdne>   07/02/24 20:42:12

Modified files:
        inc            : class.bonews.inc.php class.uinews.inc.php 

Log message:
        some notices

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/news_admin/inc/class.bonews.inc.php?cvsroot=phpgroupware&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/news_admin/inc/class.uinews.inc.php?cvsroot=phpgroupware&r1=1.45&r2=1.46

Patches:
Index: class.bonews.inc.php
===================================================================
RCS file: /sources/phpgroupware/news_admin/inc/class.bonews.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- class.bonews.inc.php        23 Aug 2006 13:32:02 -0000      1.10
+++ class.bonews.inc.php        24 Feb 2007 20:42:12 -0000      1.11
@@ -9,7 +9,7 @@
        *  option) any later version.                                           
   *
        
\**************************************************************************/
 
-       /* $Id: class.bonews.inc.php,v 1.10 2006/08/23 13:32:02 skwashd Exp $ */
+       /* $Id: class.bonews.inc.php,v 1.11 2007/02/24 20:42:12 sigurdne Exp $ 
*/
 
        /**
        * phpGroupWare News Management Logic layer
@@ -83,7 +83,7 @@
                                $this->use_session = True;
                                
foreach(array('start','query','sort','order','cat_id') as $var)
                                {
-                                       $this->$var = $_REQUEST[$var];
+                                       $this->$var = isset($_REQUEST[$var]) ? 
$_REQUEST[$var] : '';
                                }
 
                                $this->cat_id = $this->cat_id ? $this->cat_id : 
'all';

Index: class.uinews.inc.php
===================================================================
RCS file: /sources/phpgroupware/news_admin/inc/class.uinews.inc.php,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -b -r1.45 -r1.46
--- class.uinews.inc.php        24 Jan 2007 16:48:06 -0000      1.45
+++ class.uinews.inc.php        24 Feb 2007 20:42:12 -0000      1.46
@@ -9,7 +9,7 @@
  *  option) any later version.                                              *
  \**************************************************************************/
 
-/* $Id: class.uinews.inc.php,v 1.45 2007/01/24 16:48:06 Caeies Exp $ */
+/* $Id: class.uinews.inc.php,v 1.46 2007/02/24 20:42:12 sigurdne Exp $ */
 
 class uinews
 {
@@ -830,11 +830,11 @@
 
                $this->template->set_file( array('form' => 'admin_form.tpl') );
 
-               if ( is_array($this->message) )
+               if ( isset($this->message) && is_array($this->message) )
                {
                        
$this->template->set_var('errors',$GLOBALS['phpgw']->common->error_list($this->message));
                }
-               elseif ( $this->message )
+               elseif ( isset($this->message) && $this->message )
                {
                        $this->template->set_var('errors',$this->message);
                }
@@ -857,17 +857,17 @@
                         'value_id'             => $this->news_id,
                         'lang_cancel'  => lang('cancel'),
                         'label_subject'=> lang('subject'),
-                        'value_subject'=> 
htmlspecialchars($this->news_data['subject']),
+                        'value_subject'=> isset($this->news_data['subject']) ? 
htmlspecialchars($this->news_data['subject']) : '',
                         'label_teaser' => lang('summary'),
-                        'value_teaser' => 
htmlspecialchars($this->news_data['teaser']),
-                        'value_content'=> $this->news_data['content'] ? 
htmlspecialchars($this->news_data['content']) : '&nbsp;',
+                        'value_teaser' => isset($this->news_data['teaser']) ? 
htmlspecialchars($this->news_data['teaser']) : '',
+                        'value_content'=> isset($this->news_data['content']) 
&& $this->news_data['content'] ? htmlspecialchars($this->news_data['content']) 
: '&nbsp;',
                         'label_category'=> lang('category'),
                         'value_category'=> $this->_selectlist('write', 
intval($this->news_data['category'])),
                         'label_visible'=> lang('visible'),
-                        'value_begin'  => $jscal->input('news[begin]', 
$this->news_data['begin']),
-                        'select_from'  => $options['from'],
-                        'select_until' => $options['until'],
-                        'value_end'    => $jscal->input('news[end]', 
$this->news_data['end']),
+                        'value_begin'  => $jscal->input('news[begin]', 
isset($this->news_data['begin'])?$this->news_data['begin']:''),
+                        'select_from'  => 
isset($options['from'])?$options['from']:'',
+                        'select_until' => 
isset($options['until'])?$options['until']:'',
+                        'value_end'    => $jscal->input('news[end]', 
isset($this->news_data['end'])?$this->news_data['end']:''),
                ));
                //echo '<pre>' . print_r($this->news_data, true) . '</pre>';
                //echo '<pre>' . 
print_r($this->_get_option_vals($this->news_data), true) . '</pre>';




reply via email to

[Prev in Thread] Current Thread [Next in Thread]