Changeset 330

Show
Ignore:
Timestamp:
06/23/08 18:33:00 (5 months ago)
Author:
kevin
Message:

Fixed a bug that displayed the wrong settings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • notification/lib.php

    r286 r330  
    3131                    $posts_checked = ''; 
    3232                    $posts_and_comments_checked = ''; 
     33                    myuserid = $_SESSION['userid']; 
    3334                    $query = <<< END 
    3435SELECT n.comment_notification AS comment_notification 
    3536FROM {$CFG->prefix}notifications n INNER JOIN {$CFG->prefix}notification_objects no ON(no.ident = n.notification_object_id) 
    3637WHERE no.owner = $pg_owner AND no.object_type = '{$item->object_type}' 
     38AND n.owner = $myuserid 
    3739END; 
    3840                    $results = get_record_sql($query); 
     
    142144SELECT n.ident FROM {$CFG->prefix}notifications n 
    143145INNER JOIN  
    144 {$CFG->prefix}notifications no 
     146{$CFG->prefix}notification_objects no 
    145147ON (no.ident = n.notification_object_id) 
    146148WHERE no.owner = $object_owner