Changeset 24545


Ignore:
Timestamp:
Sep 20, 2013, 4:25:40 PM (11 years ago)
Author:
mistic100
Message:

fix Unknown column 'ic.image_id' in 'where clause'

Location:
extensions/Comments_on_Albums/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/include/coa_comments_page.php

    r18927 r24545  
    4242    );
    4343  $template->assign('sort_by_options', $sort_by);
     44 
     45  // clean where_clauses from unknown column
     46  foreach ($page['where_clauses'] as &$cond)
     47  {
     48    if (strpos($cond, 'ic.image_id') !== false)
     49    {
     50      $cond = get_sql_condition_FandF(array(
     51        'forbidden_categories' => 'category_id',
     52        'visible_categories' => 'category_id'
     53        ),
     54        '', true);
     55    }
     56  }
     57  unset($cond);
    4458
    4559  // +-----------------------------------------------------------------------+
  • extensions/Comments_on_Albums/trunk/main.inc.php

    r21347 r24545  
    44Version: auto
    55Description: Activate comments on albums pages
    6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=512
     6Plugin URI: auto
    77Author: Mistic
    88Author URI: http://www.strangeplanet.fr
Note: See TracChangeset for help on using the changeset viewer.