Jump to content

BUG? No criteria_id on unused criteria


Christopher Ambler

Recommended Posts

I have three possible criteria states for my gallery integration.

 

1 = none

2 = comments only

3 = critical review

 

I have created listing types for 2 and 3, but not 1. For type 1, I want no output at all. I am, however, getting this error:

 

Notice: Undefined index: criteria_id in /nfs/c04/h04/mnt/66698/domains/modelinsider.com/html/components/com_jreviews/jreviews/controllers/everywhere_controller.php on line 126

 

... when I attempt to view an image that has the selection set to 1. My guess is that the SQL call is returning an empty row, so the call to set $review_fields is failing because $listing['Criteria'] is likely empty.

 

Would you consider this a bug?

Link to comment
×
×
  • Create New...