Changeset 2028
- Timestamp:
- 11/02/2015 05:34:45 AM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications-db.php
r2024 r2028 129 129 function get_trac_ticket_subscriptions( $ticket_id ) { 130 130 $by_status = array( 'blocked' => array(), 'starred' => array() ); 131 $subscriptions = $this->db->get_results( $this->db->prepare( "SELECT username, status FROM _ticket_subs WHERE ticket = % s", $ticket_id ) );131 $subscriptions = $this->db->get_results( $this->db->prepare( "SELECT username, status FROM _ticket_subs WHERE ticket = %d", $ticket_id ) ); 132 132 foreach ( $subscriptions as $subscription ) { 133 133 $by_status[ $subscription->status ? 'starred' : 'blocked' ][] = $subscription->username; … … 137 137 138 138 function get_trac_ticket_subscription_status_for_user( $ticket_id, $username ) { 139 $status = $this->db->get_var( $this->db->prepare( "SELECT status FROM _ticket_subs WHERE username = %s AND ticket = % s", $username, $ticket_id ) );139 $status = $this->db->get_var( $this->db->prepare( "SELECT status FROM _ticket_subs WHERE username = %s AND ticket = %d", $username, $ticket_id ) ); 140 140 if ( null !== $status ) { 141 141 $status = (int) $status; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications-http-server.php
r2027 r2028 16 16 function serve( $method, $secret, $arguments ) { 17 17 if ( ! method_exists( 'Trac_Notifications_DB', $method ) || $method[0] === '_' ) { 18 exit ( 'null' );18 exit; 19 19 } 20 20 21 21 if ( $secret !== $this->secret ) { 22 exit ( 'null' );22 exit; 23 23 } 24 24 … … 30 30 31 31 echo json_encode( $result ); 32 die;32 exit; 33 33 } 34 34 }
Note: See TracChangeset
for help on using the changeset viewer.