[ticket/11919] Remove extra argument to notification manager's sql_fetchfield()

PHPBB3-11919
This commit is contained in:
Patrick Webster 2013-10-14 21:18:41 -05:00
parent 40932c26ea
commit 2b1ee16e4f

View file

@ -154,7 +154,7 @@ class manager
AND nt.notification_type_id = n.notification_type_id AND nt.notification_type_id = n.notification_type_id
AND nt.notification_type_enabled = 1'; AND nt.notification_type_enabled = 1';
$result = $this->db->sql_query($sql); $result = $this->db->sql_query($sql);
$unread_count = (int) $this->db->sql_fetchfield('unread_count', $result); $unread_count = (int) $this->db->sql_fetchfield('unread_count');
$this->db->sql_freeresult($result); $this->db->sql_freeresult($result);
} }
@ -167,7 +167,7 @@ class manager
AND nt.notification_type_id = n.notification_type_id AND nt.notification_type_id = n.notification_type_id
AND nt.notification_type_enabled = 1'; AND nt.notification_type_enabled = 1';
$result = $this->db->sql_query($sql); $result = $this->db->sql_query($sql);
$total_count = (int) $this->db->sql_fetchfield('total_count', $result); $total_count = (int) $this->db->sql_fetchfield('total_count');
$this->db->sql_freeresult($result); $this->db->sql_freeresult($result);
} }