6.0.0-beta1
7/25/25

[#5800] numMessagesBatch-api-call always returns 0
Summary numMessagesBatch-api-call always returns 0
Queue Agora
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester tinu (at) humbapa (dot) ch
Created 10/16/2007 (6492 days ago)
Due
Updated 10/17/2007 (6491 days ago)
Assigned
Resolved 10/17/2007 (6491 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/17/2007 09:22:48 AM Jan Schneider State ⇒ Resolved
 
10/17/2007 06:36:39 AM tinu (at) humbapa (dot) ch Comment #4 Reply to this comment
it works now

thanks :-)
10/16/2007 10:33:31 PM Duck Comment #3 Reply to this comment
Patch commited. Please try now.
10/16/2007 04:52:09 PM tinu (at) humbapa (dot) ch Comment #2 Reply to this comment
the same typo occurs a second time in agora/lib/api.php inside the 
function _agora_numMessages and in 
agora/templates/prefs/avatarselect.inc.
10/16/2007 04:38:28 PM tinu (at) humbapa (dot) ch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ numMessagesBatch-api-call always returns 0
Queue ⇒ Agora
New Attachment: api.php.patch Download
State ⇒ Unconfirmed
Reply to this comment
I'm using ansel to use comments via agora. when I view all images 
inside a gallery (ansel/view.php?view=Gallery&gallery=X) all images 
have 0 comments, even if there actually are some.

the corresponding function _agora_numMessagesBatch in 
agora/lib/api.php always returns 0 because empty($forum_id) is NULL on 
my setup. adding braces solved my problem (see patch).

I'm using PHP 5.2.4 and apache 2.2.6 on Linux.

Saved Queries