phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] notes/inc class.bonotes.inc.php class.sonotes.i...


From: Caeies
Subject: [Phpgroupware-cvs] notes/inc class.bonotes.inc.php class.sonotes.i...
Date: Sun, 18 Feb 2007 21:03:14 +0000

CVSROOT:        /cvsroot/phpgroupware
Module name:    notes
Changes by:     Caeies <Caeies> 07/02/18 21:03:14

Modified files:
        inc            : class.bonotes.inc.php class.sonotes.inc.php 
                         class.uinotes.inc.php 

Log message:
        some more notices fixes ...

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/notes/inc/class.bonotes.inc.php?cvsroot=phpgroupware&r1=1.26&r2=1.27
http://cvs.savannah.gnu.org/viewcvs/notes/inc/class.sonotes.inc.php?cvsroot=phpgroupware&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/notes/inc/class.uinotes.inc.php?cvsroot=phpgroupware&r1=1.39&r2=1.40

Patches:
Index: class.bonotes.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/notes/inc/class.bonotes.inc.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- class.bonotes.inc.php       13 Nov 2006 12:42:57 -0000      1.26
+++ class.bonotes.inc.php       18 Feb 2007 21:03:14 -0000      1.27
@@ -6,7 +6,7 @@
        * @copyright Copyright (C) 2000-2003,2005 Free Software Foundation, 
Inc. http://www.fsf.org/
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package notes
-       * @version $Id: class.bonotes.inc.php,v 1.26 2006/11/13 12:42:57 ceb 
Exp $
+       * @version $Id: class.bonotes.inc.php,v 1.27 2007/02/18 21:03:14 Caeies 
Exp $
        */
 
 
@@ -191,6 +191,10 @@
                function read_sessiondata()
                {
                        $data = 
$GLOBALS['phpgw']->session->appsession('session_data','notes');
+                       if(!is_array($data))
+                       {
+                               return;
+                       }
 
                        //_debug_array($data);
 

Index: class.sonotes.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/notes/inc/class.sonotes.inc.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- class.sonotes.inc.php       28 Dec 2006 04:07:53 -0000      1.15
+++ class.sonotes.inc.php       18 Feb 2007 21:03:14 -0000      1.16
@@ -6,7 +6,7 @@
        * @copyright Copyright (C) 2000-2003,2005 Free Software Foundation, 
Inc. http://www.fsf.org/
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package notes
-       * @version $Id: class.sonotes.inc.php,v 1.15 2006/12/28 04:07:53 
skwashd Exp $
+       * @version $Id: class.sonotes.inc.php,v 1.16 2007/02/18 21:03:14 Caeies 
Exp $
        */
 
 
@@ -93,17 +93,21 @@
 
                                $querymethod = " AND note_content LIKE 
'%$query%'";
                        }
+                       else
+                       {
+                               $querymethod = '';
+                       }
 
                        $sql = "SELECT * FROM phpgw_notes WHERE $filtermethod 
$querymethod";
 
                        $this->db->query($sql,__LINE__,__FILE__);
                        $this->total_records = $this->db->num_rows();
 
-                       if($limit)
+                       if($start)
                        {
                                $this->db->limit_query($sql . 
$ordermethod,$start,__LINE__,__FILE__);
                        }
-
+                       $notes = array();
                        while ($this->db->next_record())
                        {
                                $ngrants = 
$this->grants[$this->db->f('note_owner')];
@@ -126,6 +130,7 @@
                {
                        $this->db->query('select * from phpgw_notes where 
note_id=' . intval($note_id),__LINE__,__FILE__);
 
+                       $note = array();
                        if ($this->db->next_record())
                        {
                                $note['id']                     = 
$this->db->f('note_id');

Index: class.uinotes.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/notes/inc/class.uinotes.inc.php,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -b -r1.39 -r1.40
--- class.uinotes.inc.php       24 Jan 2007 16:45:16 -0000      1.39
+++ class.uinotes.inc.php       18 Feb 2007 21:03:14 -0000      1.40
@@ -6,7 +6,7 @@
        * @copyright Copyright (C) 2000-2003,2005 Free Software Foundation, 
Inc. http://www.fsf.org/
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package notes
-       * @version $Id: class.uinotes.inc.php,v 1.39 2007/01/24 16:45:16 Caeies 
Exp $
+       * @version $Id: class.uinotes.inc.php,v 1.40 2007/02/18 21:03:14 Caeies 
Exp $
        */
 
        /**
@@ -82,7 +82,7 @@
                        (
                                'menuaction' => 'notes.uinotes.index'
                        );
-
+                       $content = array();
                        while (is_array($notes_list) && list(,$note) = 
each($notes_list))
                        {
                                $words = split(' ',$note['content']);




reply via email to

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